All Downloads are FREE. Search and download functionalities are using the official Maven repository.

WEBPIECESxPACKAGE.base.examples.loadUser.html Maven / Gradle / Ivy


  
  
  
    

Webpieces Webserver (in home.html file)

Here is an if statement based off the user variable from the controller...
If the user exists, it prints the first line 'Hello there {user}'
#{if user}# Hello there ${user}$
#{/if}# #{else}# Hi, we don't know you #{/else}#
This next one is a custom tag passing in two custom args and a body to be used by mytag.tag file
#{mytag someArgument:'something', otherArgument:user}#Some body#{/mytag}#

This is the end of the html page




© 2015 - 2025 Weber Informatics LLC | Privacy Policy