Create Pages and Templates
Jifty is a very mighty system. Therefore there are some more things to know in order to write a full-fledged application.
Basically a simple template is very much like a Mason template. A minimal template could look like this:
<%init>
# some perl code to initialize the page
</%init>
<&|/_elements/wrapper, title => 'my page title here' &>
page content html or dynamic code here
</&>
Simply put these lines into a filename of your choice under the share/web/templates/ directory and point your browser to this file.
To allow data to get sent to your template, you may add an args section to your template. The values of the named arguments may come from GET parameters, a page region definition or from the dispatcher. An args section looks like this:
<%args>
$somevariable => some_default_value
$othervariable
</%args>
In order to use Jifty's features, however, read on...