2017 © Pedro Peláez
 

symfony-bundle twig-default-bundle

TcTwigDefaultBundle

image

tc/twig-default-bundle

TcTwigDefaultBundle

  • Friday, May 8, 2015
  • by carlcraig
  • Repository
  • 2 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Tc Twig Default Bundle

Latest Stable Version, (*1)

Adds a set_default tag to twig, which will only set a variable if it doesn't already exist., (*2)

Installation

composer require tc/twig-default-bundle

Enable the bundle in your AppKernel.php, (*3)

$bundles = array(
    // ...

    new Tc\Bundle\TwigDefault\TcTwigDefaultBundle(),

    // ...
);

Usage

Usage in Twig:, (*4)

{% set_default title = 'One' %}

{# title = One #}

{% set title = 'Two' %}

{# title = Two #}

{% set_default title = 'Three' %}

{# title = Two #}

License

TcTwigDefaultBundle is licensed with the MIT license., (*5)

See LICENSE for more details., (*6)

The Versions

08/05 2015

dev-master

9999999-dev https://github.com/ThreeceeStudios/TcTwigDefaultBundle

TcTwigDefaultBundle

  Sources   Download

MIT

The Requires

 

by Carl Craig

twig tc twig-default-bundle twig default

08/05 2015

v1.0.0

1.0.0.0 https://github.com/ThreeceeStudios/TcTwigDefaultBundle

TcTwigDefaultBundle

  Sources   Download

MIT

The Requires

 

by Carl Craig

twig tc twig-default-bundle twig default