yatt_manual -- yatt syntax manual
In yatt, templates are almost like ordinally HTML. In basic setup, all yatt-specific items are written with (specified) namespace, which is overridable. In this document, I use yatt for explanation.
yatt
<!yatt:...>
Declaration. (beginning of a element, usually)
&yatt:...;
Variable reference and call of entity function.
<yatt:.../>, <yatt:...> ~ </yatt:...>
<yatt:.../>
<yatt:...> ~ </yatt:...>
Call of a widget.
<:yatt:.../> ~, <:yatt:...> ~ </:yatt:...>
<:yatt:.../> ~
<:yatt:...> ~ </:yatt:...>
Call of a widget, with tag style arguments.
<?yatt ... ?>
General source code embedition (like php)
&yatt[[; ... &yatt]];
&yatt#num[[; ...singular... &yatt||; ...plural... &yatt]];
Internationalized message.
<!--#yatt ... -->
Comment, which is not parsed by yatt.
To install YATT::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YATT::Lite
CPAN shell
perl -MCPAN -e shell install YATT::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.