Twig 1.13.1

Twig

Twig is a modern PHP template engine features for flexible, fast and secure. It complies templates down to plain optimized PHP code, it also has a sandbox mode to evaluated untrusted template code, which allows Twig to be used as a template language for applications where users may modify the template design. Twig is powered by a flexible lexer and parser, which allows the developers to define its own custom tags and filters and create its own DSL.

Features of Twig:
- Template oriented syntax: Twig has shortcuts for common patterns, like having a default text displayed when you iterate over an empty array:
- Unit tested: Twig is fully unit-tested. The library is stable and ready to be used in large projects.
- Clean Error Messages: Whenever you have a syntax problem within a template, Twig outputs a helpful message with the filename and the line number where the problem occurred. It eases the debugging a lot.
- And much more.

Requirements:
- PHP 5.2.4 or Higher

What's New in This Version:
- Fixed fatal error that should be an exception when adding a filter/function/test too late.
- Added a batch filter.
- Added support for encoding an array as query string in the url_encode filter.

License type: BSD
Date added: 3 years, 8 months 9 days ago | Last updated: 1 year, 1 month 12 days ago

More popular Template engine

Listing Files

fabpot-Twig-8fa9c37
  • .gitignore
  • 27 Bytes
  • 11/11/2012 09:17:58
  • phpunit.xml.dist
  • 651 Bytes
  • 11/11/2012 09:17:58
test
Twig
Tests
Loader
Fixtures
named_final
named_ter
List All Files