2017 © Pedro PelĂĄez
 

library tpl-twig

Twig for Simple Template Abstraction Library

image

fkooman/tpl-twig

Twig for Simple Template Abstraction Library

  • Wednesday, August 10, 2016
  • by fkooman
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,098 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality, (*1)

Introduction

Twig implemention for fkooman/tpl., (*2)

Internationalization

Next to simple templates in one language, it is also possible to support translations on the template level. See the Twig i19n extension documention for more information., (*3)

How to Use

<?php

$t = new TwigTemplateManager(
    array(__DIR__.'/views')
);

$localeDir = __DIR__.'/locale';
$t->setI18n('MyApp', 'nl_NL', $localeDir);
$this->assertSame('Hallo World!', $t->render('1', array('name' => 'World')));

This requires the MyApp.mo file to be present at __DIR__.'/locale/nl_NL/LC_MESSAGES/MyApp.mo., (*4)

More documentation on generating MyApp.mo from MyApp.po and how everything fits together see the Wikipedia page on gettext. Together with the Twig documentation on i18n that should be all you need to know., (*5)

The Versions

10/08 2016

dev-master

9999999-dev

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

10/08 2016

1.3.3

1.3.3.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

11/04 2016

1.3.2

1.3.2.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

11/04 2016

1.3.1

1.3.1.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

11/04 2016

1.3.0

1.3.0.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

04/02 2016

1.2.0

1.2.0.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

17/12 2015

1.1.0

1.1.0.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman

10/08 2015

1.0.0

1.0.0.0

Twig for Simple Template Abstraction Library

  Sources   Download

Apache-2.0

The Requires

 

by François Kooman