***NEW v1.2 - included an Twig Extension with Opencart exclusive functions and filters
v1.1.2 - use native view function to compile with twig, native php templates or both mixed
Twig is a modern template engine for PHP
Fast: Twig compiles templates down to plain optimized PHP code. The overhead compared to regular PHP code was reduced to the very minimum.
Secure: Twig has a sandbox mode to evaluate untrusted template code. This allows Twig to be used as a template language for applications where users may modify the template design.
Flexible: Twig is powered by a flexible lexer and parser. This allows the developer to define its own custom tags and filters, and create its own DSL.
Twig Documentation: http://twig.sensiolabs.org/documentation
Follow updates and help to make it better in github: https://github.com/vanderson139/opencart-twig
Functions
- link
- lang
- config
- image
- asset
- load
- paginate
- can_access
- can_modify
Filters
- money
- tax
- len
- wei
- truncate
- encrypt
- decrypt
and more...
View documentation below
Donations so far: R$ 0,00
Login and write down your comment.
Login my OpenCart Account