[OCMOD] NEW Twig Template Engine for Opencart

[OCMOD] NEW Twig Template Engine for Opencart
***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




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0

Last Update
7 Nov 2016

Created
2 Apr 2015
117 Downloads
2 Comments
vanderson139
vanderson139
Member since: 2 Apr 2015

View all extensions Get Support