| |||||
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 ]
· Fixed the timezone used by the date filter and function when the given date contains a timezone (like 2010-01-28T15:00:00+02:00).
· Fixed globals when getGlobals is called early on.
· Added the first and last filter.

Via: Twig 1.12.2
No comments:
Post a Comment