2017 © Pedro Peláez
 

library slim-lightncandy-view

Slim Framework view helper built on top of the Handlebars/Mustache template engines, via lightncandy.

image

endel/slim-lightncandy-view

Slim Framework view helper built on top of the Handlebars/Mustache template engines, via lightncandy.

  • Sunday, May 7, 2017
  • by endel
  • Repository
  • 5 Watchers
  • 9 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Slim Framework Lightncandy View

Build Status, (*1)

This is a Slim Framework view helper built on top of the Lightncandy templating component, which is an extremely fast PHP implementation of handlebars and mustache., (*2)

You can use this component to create and render templates in your Slim Framework application., (*3)

Requires Slim 3.x.x, (*4)

Install

Via Composer, (*5)

$ composer require endel/slim-lightncandy-view

Usage

// Create Slim app
$app = new \Slim\App();

// Register Lightncandy View helper
$app->register(new \Slim\Views\Lightncandy('path/to/templates', [
    'helpers' => array(...)
    'block_helpers' => array(...)
]));

// Define named route
$app->get('/hello/{name}', function ($request, $response, $args) {
    $this['view']->render('profile', [
        'name' => $args['name']
    ]);
})->setName('profile');

// Run app
$app->run();

Examples

Take a look at the example directory for usage examples., (*6)

Testing

phpunit

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

07/05 2017

dev-master

9999999-dev https://github.com/endel/slim-lightncandy-view

Slim Framework view helper built on top of the Handlebars/Mustache template engines, via lightncandy.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework template handlebars mustache slim view