Template::Direct::Conditional - Handle a conditonal in a template
Provide support for conditionals in templates
Create a new instance object.
Returns 'if'
Returns a list of expected sub tags: [else, elif]
Returns the conditional statement fromt he template.
Modifies a template with the data listed correctly.
Reduce a string conditional into a boolean
Take tokens and group logical statements by and/or
Template::Direct::Conditional::Tokens - Handle a list of conditional tokens
Return a list of tokens object.
suck in triples and output booleans
Returns true if $b (ARRAY REF) contains $a.
Add a token to this token list.
Return the last item from this token list.
Return the token list as an array.
Martin Owens - Copyright 2007, AGPL
To install Template::Direct, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Direct
CPAN shell
perl -MCPAN -e shell install Template::Direct
For more information on module installation, please visit the detailed CPAN module installation guide.