2017 © Pedro Peláez
 

library twig-element

A Twig extension to manipulate HTML as object abstractions.

image

joshuabaker/twig-element

A Twig extension to manipulate HTML as object abstractions.

  • Monday, September 8, 2014
  • by joshuabaker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TwigElement

TwigElement is a Twig extension to manipulate HTML as object abstractions., (*1)

Usage

{# element(tag, content, attributes) #}

{{ element('input') }}
{# Outputs: <input type="" name=""> #}

{{ element('img').src('image.jpg') }}
{# Outputs: <img src="image.jpg" alt=""> #}

{{ element('a', 'Example Link', { href: 'http://example.com/' }) }}
{# Outputs: <a href="http://example.com/">Example Link</a> #}

Refer to the HtmlObject documentation for methods of element instances., (*2)

The Versions

08/09 2014

dev-master

9999999-dev

A Twig extension to manipulate HTML as object abstractions.

  Sources   Download

MPL-2.0

The Requires

 

by Joshua Baker

08/09 2014

1.0-beta.1

1.0.0.0-beta1

A Twig extension to manipulate HTML as object abstractions.

  Sources   Download

MPL-2.0

The Requires

 

by Joshua Baker