2017 © Pedro Peláez
 

library twig-extensions

A set of twig extensions

image

harmstyler/twig-extensions

A set of twig extensions

  • Friday, May 30, 2014
  • by harmstyler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Twig Extensions

A work in progress set of Twig Extensions, (*1)

Installation

These Twig Extensions are registered at packagist as harmstyler/twig-extensions and can be easily installed using composer. Alternatively you can simply download the .zip and copy the file from the 'src' folder., (*2)

The extensions are designed to be used with Symfony, (*3)

services:
  twig.extension.date:
    class: HarmsTyler\Twig\LinkToExtension
    tags:
      - { name: twig.extension }

LinkTo Extension

Extension will build out a link, requires link copy and path name to work. Optional html options can be sent in an array., (*4)

{{ link_to($link_copy, { 'path_name': { 'id': 1 } }, {'data-method': 'get', 'class': 'my-class'}) }}

will create, (*5)

<a href="/events/1" data-method="get" class="my-class">Upcoming Event</a>

The Versions

30/05 2014

dev-master

9999999-dev

A set of twig extensions

  Sources   Download

MIT

The Requires

 

30/05 2014

1.0.0

1.0.0.0

A set of twig extensions

  Sources   Download

MIT

The Requires