2017 © Pedro Peláez
 

library smart-twig

Tadcka smart twig library

image

tadcka/smart-twig

Tadcka smart twig library

  • Saturday, April 2, 2016
  • by Tadcka
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,094 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

SmartTwig

Build Status, (*1)

Installation

Install via Composer, (*2)

composer require tadcka/smart-twig "dev-master"

Templates Hinting

SmartTwig allows to enable templates hinting and in such a way helps to frontend developer to find proper template. This option can be enabled in application configuration with redefining base template class for twig (example for Symfony application):, (*3)

twig:
    base_template_class: Tadcka\SmartTwig\Template

As a result of such change user can find HTML comments on the page, (*4)

<!-- Start Template: template_name.html.twig -->
...
<!-- End Template: template_name.html.twig -->

or see "template_name" variable for AJAX requests that expecting JSON, (*5)

"template_name":"template_name.html.twig"

The templates hinting is enabled by default in development mode., (*6)

The Versions

02/04 2016

dev-master

9999999-dev https://github.com/tadcka/SmartTwig

Tadcka smart twig library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tadas Gliaubicas

twig smart twig frontend tools

02/04 2016

v0.1.0

0.1.0.0 https://github.com/tadcka/SmartTwig

Tadcka smart twig library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tadas Gliaubicas

twig smart twig frontend tools