2017 © Pedro Peláez
 

yii2-extension yii2-handlebars

The Handlebars.php integration for the Yii framework. Fork of https://github.com/7coders/yii2-handlebars which disappeared mysteriously from GitHub.

image

exertis/yii2-handlebars

The Handlebars.php integration for the Yii framework. Fork of https://github.com/7coders/yii2-handlebars which disappeared mysteriously from GitHub.

  • Tuesday, April 7, 2015
  • by russellhutsonmicro-p
  • Repository
  • 3 Watchers
  • 2 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-handlebars

Fork of https://github.com/7coders/yii2-handlebars which disappeared mysteriously from GitHub, (*1)

From the original 7coders README.md

Handlebars renderer for Yii2 framework., (*2)

This extension provides a ViewRender that would allow you to use handlebars-php view template engine., (*3)

To use this extension, simply add the following code in your application configuration:, (*4)

return [
    //....
    'components' => [
        'view' => [
            'renderers' => [
                'handlebars' => [
                    'class' => 'exertis\handlebars\ViewRenderer',
                    // the file extension of Handlebars templates
                    // 'extension' => '.handlebars',
                    // path alias pointing to where Handlebars cache will be stored. Set to false to disable templates cache.
                    // 'cache' => '@app/runtime/handlebars',
                    // array helpers to preload, can contain class names (strings).
                    // If empty - only default helpers will be preloaded
                    // 'helpers' => [],
                    // a callable function to escape values
                    // 'escape' => 'htmlspecialchars',
                    // array to pass as extra parameter to the escape function
                    // 'escapeArgs' => [ENT_COMPAT, 'UTF-8']
                ],
            ],
        ],
    ],
];

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

php composer.phar require --prefer-dist exertis/yii2-handlebars "*"  

or add, (*7)

"exertis/yii2-handlebars": "*"  

to the require section of your composer.json., (*8)

The Versions

07/04 2015

dev-master

9999999-dev

The Handlebars.php integration for the Yii framework. Fork of https://github.com/7coders/yii2-handlebars which disappeared mysteriously from GitHub.

  Sources   Download

BSD-3-Clause

The Requires

 

by Andriy Kravchenko
by Russell Hutson

php yii2 renderer handlebars