Templates are the way developers solve the problem of dynamic websites.
They create one generic page, and using special placeholder tags (the template syntax) they insert content based on the URL the user is accessing.
Puja supports this mechanism for PHP, implemented as a simple, loadable PHP class.
Puja works like most template engines, but also has a feature that most other template engines don't have: syntax checking. This means before compiling the template into a standard Web page, Puja will check to see if there are any errors in the template's syntax, and avoid situations where the template tags are compiled to the page's output.
Features:
- Works pretty fast
- Compiles only once
- Template output caching
- Can validate the template syntax (error checking)
- Will recompile only the template files that changed
- Template inheritance
- Nesting support
- Conditionals support
- Variables support
- Filters support
- Comments support
- Documentation
What is new in this release:
- Added validate template_file and template_data
- Added validate operator syntax: " a in b"
- Added more escape \{%, \{$, \{#
- Changed custom syntax name with prefix: tag_
- Updated documents
- Updated performance for cache level = 2( Dont load template content if cache_level = 2)
- Fixed variable a == 0
Comments not found