NAME
Template::Declare
DESCRIPTION
Template::Declare
is a prototype declarative code-based HTML templating system. Yes. Another one. There are many others like it, but this one is ours. It's designed to allow template libraries to be composed, mixed in and inherited. The code isn't (yet) pretty nor is it in any way optimized. It's not well enough tested, either.
In the coming weeks, months and years, Template::Declare we will extend it to support all the things we've designed it to do.
BUGS
Crawling all over, baby. Be very, very careful. This code is so cutting edge, it can only be fashioned from carbon nanotubes.
init
This class method initializes the Template::Declare
system.
- roots
alias
alias Some::Clever::Mixin under '/mixin';
import
import Wifty::UI::something under '/something';
has_template
resolve_template TEMPLATE_PATH INCLUDE_PRIVATE_TEMPLATES
Turns a template path (TEMPLATE_PATH) into a
CODEREF
. If the boolean INCLUDE_PRIVATE_TEMPLATES
is true, resolves private template in addition to public ones.
First it looks through all the valid Template::Declare roots. For each root, it looks to see if the root has a template called $template_name directly (or via an import
statement). Then it looks to see if there are any alias
ed paths for the root with prefixes that match the template we're looking for.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 162:
Unterminated C<...> sequence