2017-25 © Pedro Peláez
 

library twig-defer-extension

Defer rendering of TWIG template pieces

image

wucdbm/twig-defer-extension

Defer rendering of TWIG template pieces

  • Sunday, June 4, 2017
  • by wucdbm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,520 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 22 % Grown

The README.md

Using this small library you can "cache" the output of twig code and print it later., (*1)

Use the {% defer %} tag to cache your output. Both {% defer NAME EXPRESSION %} and {% defer NAME %} EXPRESSION {% enddefer %} are possible., (*2)

    {% defer 'someKey' 'defaultValueExpression' %}
    {% defer someKeyVariable 'someDefaultValueExpression' %}
    {% defer 'someKey' %}
        someBlock {{ with Variables }}
    {% enddefer %}

    {% if 'someKey' is deferred %}
    {% if someVariableValue is deferred %}

    {{ someKey|deferred('defaultValue') }}

The Versions

04/06 2017

dev-master

9999999-dev

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

04/06 2017

3.0.x-dev

3.0.9999999.9999999-dev

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

04/06 2017

v3.0.0

3.0.0.0

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

14/01 2017

2.0.x-dev

2.0.9999999.9999999-dev

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

14/01 2017

v2.0.1

2.0.1.0

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

11/01 2017

v2.0.0

2.0.0.0

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

22/09 2016

1.0.x-dev

1.0.9999999.9999999-dev

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

24/07 2016

v1.0.1

1.0.1.0

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

 

by Martin Kirilov

templating twig

24/07 2016

v1.0.0

1.0.0.0

Defer rendering of TWIG template pieces

  Sources   Download

GPL-3.0

The Requires

  • php ~5.5|~7.0

 

by Martin Kirilov

templating twig