gosukiwi/silex-katar

There is no license information available for the latest version (0.2.0) of this package.

Silex service provider for Katar template engine

0.2.0 2014-05-23 04:24 UTC

This package is not auto-updated.

Last update: 2024-04-13 12:59:11 UTC


README

Katar is a simplistic template engine for PHP based on Blade.

For more information on Katar see the official repo.

Usage

Installation is easy though composer

$ composer require gosukiwi/silex-katar

Then register the service

$app->register(new SilexKatar\KatarServiceProvider(), array(
  'katar.views_path' => __DIR__ . '/views',
  'katar.debug' => false,
));

// Somewhere in your code...

$app->get('/myRote', function () use ($app) {
  // Some code...
  return $app['katar']->render('myView.katar.html', array( 'data' => 'someVal' ));
});