2017 © Pedro Peláez
 

library twig_pjaxr

PJAXR backend for Twig

image

iekadou/twig_pjaxr

PJAXR backend for Twig

  • Monday, April 27, 2015
  • by iekadou
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

twig-pjaxr

How to install twig-pjaxr?

There are just two steps needed to install twig-pjaxr:, (*1)

  1. Add twig-pjaxr to your composer.json:, (*2)

    {
        "require": {
            "iekadou/twig_pjaxr": ">=0.2.0",
        }
    }
    
  2. Add Twig_Pjaxr_Extension to the Twig-Engine:, (*3)

    $twig->addExtension(new Twig_Pjaxr_Extension());
    

How do i use twig-pjaxr?

Instead of using the {% extends %} tag use {% pjaxr_extends %}., (*4)

{% pjaxr_extends "__base.html" "__pjaxr.html" 'Pjaxr' %}
{% block page %}
...
{% endblock page %}

or

{% pjaxr_extends "__base.html" 'Pjaxr' %}
{% block page %}
...
{% endblock page %}
  • The first argument is the template, which is extended if the request is not a PJAXR request, or the namespace does not match.
  • The second argument is the template, which is extended if the namespace matches. (optional, default is "__pjaxr.html")
  • The thrid argument is the namespace which should be tested against, to decide which template should be extended.

What do you need for twig-pjaxr?

  1. PHP >= 5.3.3
  2. twig
  3. php-pjaxr
  4. jquery-pjaxr

Projects using twig-pjaxr

  1. pjaxr.io

If you are using twig-pjaxr, please contact me, and tell me in which projects you are using it. Thank you!, (*5)

Happy speeding up your twig project!, (*6)

For further information read twig-pjaxr on iekadou.com, (*7)

The Versions

27/04 2015

dev-master

9999999-dev http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

27/04 2015

v0.2.0

0.2.0.0 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

27/04 2015

dev-develop

dev-develop http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

03/04 2015

v0.1.3-alpha3

0.1.3.0-alpha3 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

02/04 2015

v0.1.3-alpha2

0.1.3.0-alpha2 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

02/04 2015

v0.1.3-alpha1

0.1.3.0-alpha1 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

01/04 2015

v0.1.2

0.1.2.0 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

01/04 2015

v0.1.1

0.1.1.0 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

 

templating

30/03 2015

v0.1.0

0.1.0.0 http://iekadou.com

PJAXR backend for Twig

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

templating