Skip to content

gosukiwi/silex-katar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silex Provider for Katar

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' ));
});

About

Silex service provider for Katar template engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages