2017 © Pedro Peláez
 

project tutu-twig-extension

Adds new features to TuTu twig templates engine.

image

coduo/tutu-twig-extension

Adds new features to TuTu twig templates engine.

  • Sunday, November 20, 2016
  • by norzechowicz
  • Repository
  • 2 Watchers
  • 0 Stars
  • 15,588 Installations
  • Cucumber
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

TuTu Twig extension

This extensions adds new features to Twig, (*1)

To use extension simply add it to TuTu composer dependencies:, (*2)

$ composer require coduo/tutu-twig-extension

Enable extension in TuTu configuration, (*3)

# config/config.yml

extensions:
    Coduo\TuTu\Extension\Twig: ~

From now you should be able to use following features in twig:, (*4)

Filters

json_decode - decode json into array/object, (*5)

Arguments, (*6)

  • $asArray - true
  • $depth - 512

Examples, (*7)

{% set user = request.content|json_decode %}
{
    "id": 1,
    "email": {{ user.name }}
}

The Versions

20/11 2016

dev-master

9999999-dev

Adds new features to TuTu twig templates engine.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/11 2016