Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Chintz
.gitignore
LICENSE
README.md
composer.json

README.md

Chintz PHP

A PHP parser for Chintz libraries.

This is a work-in-progress implementation of the Chintz Parser specified at: https://github.com/pgchamberlin/chintz#chintz-parser

Example usage

Assuming you use Mustache for templates, and default handling for resolved dependencies:

$parser = Chintz_Parser(array(
  'chintz-base-path' => '/absolute/path/to/chintz/library',
  'templater' => new Chintz_Templater_Mustache()
));

$parser->prepare('my-organism');

$data = array(
  'content' => 'This is some data our "my-organism" component knows how to display'
);

echo $parser->render('my-organism', $data);

Is there a demo?

Yes, see it in action or look at the source code.