2017 © Pedro PelĂĄez
 

simplesamlphp-module simplesamlphp-module-twig

A SimpleSAMLphp module adding support for the Twig template library.

image

sgomez/simplesamlphp-module-twig

A SimpleSAMLphp module adding support for the Twig template library.

  • Sunday, March 27, 2016
  • by decano
  • Repository
  • 1 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SimpleSAMLphp Composer Twig module

This package add support for the twig template library through a SimpleSAMLphp module installable through Composer. Installation can be as easy as executing:, (*1)

composer.phar require sgomez/simplesamlphp-module-twig ~1.0

Using templates

This module search in all active modules this directory structure: modulename/resources/templates/ and create a namespace for each module that has one., (*2)

Render a template is as easy as this:, (*3)

$engine = \SimpleSAML\Modules\Twig\TwigEngine::getInstance();
echo $engine->render('@modulename/template.html.twig');

Using translations

This module uses the symfony/translation library to search translations files in yml format on the next directory: modulename/resources/translations/., (*4)

The filename must have the next format: modulename.locale.yml, (*5)

Twig and translations

This bundle uses the Symfony Twig Extension on twig-bridge library. So basically you can use the same filters and blocks than Symfony., (*6)

The Versions

27/03 2016

dev-master

9999999-dev

A SimpleSAMLphp module adding support for the Twig template library.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig simplesamlphp simplesaml

27/03 2016

v1.0.2

1.0.2.0

A SimpleSAMLphp module adding support for the Twig template library.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig simplesamlphp simplesaml

27/03 2016

v1.0.1

1.0.1.0

A SimpleSAMLphp module adding support for the Twig template library.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig simplesamlphp simplesaml

26/03 2016

v1.0.0

1.0.0.0

A SimpleSAMLphp module adding support for the Twig template library.

  Sources   Download

MIT

The Requires

 

The Development Requires

twig simplesamlphp simplesaml