2017 © Pedro Peláez
 

library skeleton-template-twig

Twig templating for Skeleton

image

tigron/skeleton-template-twig

Twig templating for Skeleton

  • Tuesday, July 10, 2018
  • by tigron
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,172 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

skeleton-template-twig

Description

Twig templating for Skeleton., (*1)

Installation

Installation via composer:, (*2)

composer require tigron/skeleton-template-twig

Howto

Load the library, point it to your template directory, assign a variable if you need to and go!, (*3)

<?php
$renderer = new \Skeleton\Template\Twig\Twig();
$renderer->add_template_path('/path/to/my/templates/');
$renderer->assign('my_variable', 'some value');

// Optional translation support (requires skeleton-i18n)
$renderer->set_translation($skeleton_i18n_translation_instance);

echo $renderer->render('template.twig');

Extra configuration:, (*4)

/**
 * Enable debugging
 */
\Skelton\Template\Twig\Config::$debug = false;

/**
 * Cache path
 *
 * This directory will be used to store the cached templates
 */
\Skelton\Template\Twig\Config::$cache_path = '/tmp';

/**
 * Auto_escape
 *
 * Indicate if the resulting template should be auto-escaped
 */
\Skelton\Template\Twig\Config::$autoescape = true;

The Versions

10/07 2018

dev-master

9999999-dev

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

10/07 2018

v0.1.3

0.1.3.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

16/03 2018

v0.1.2

0.1.2.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

15/09 2016

0.1.1

0.1.1.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

22/03 2016

v0.1.0

0.1.0.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

22/02 2016

v0.0.3

0.0.3.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

12/02 2016

v0.0.2

0.0.2.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA

30/10 2015

0.0.1

0.0.1.0

Twig templating for Skeleton

  Sources   Download

MIT

The Requires

 

by Tigron BVBA