|
Twig uses a syntax similar to the Django and Jinja template languages.
Twig is the current templating engine used in the popular Symfony PHP framework.
Here are some key features of "Twig":
· Twig compiles templates down to plain optimized PHP code.
· Twig has a sandbox mode to evaluate untrusted template code.
· Twig is powered by a flexible lexer and parser.
· The developer can define its own custom tags and filters, and create its own DSL.
· Twig can be used as a template language for applications where users may modify the template design.
· Concise language.
· Clean error messages.
· Twig supports from multiple inheritance, blocks to automatic output-escaping, and much more.
· Unit tested.
· Documentation provided.
Requirements:
· PHP 5.2 or higher
What's New in This Release: [ read full changelog ]
· Optimized macro calls when auto-escaping is on.
· Fixed wrong parent class for Twig_Function_Node.
· Made Twig_Loader_Chain more explicit about problems.
Via: Twig 1.9.1
0 Comment:
Post a Comment