Mustache-Spark implements support for using the Mustache template system in CodeIgniter.
Mustache is available for Codeigniter via Sparks.
Once you've got the spark set up, you can load it using:
$this->load->spark('mustache_spark/[version #]');
When Mustache-Spark is loaded, we can get on to more exciting things.
$this->mustache_spark->set_master_template(
'comment'
);
$this->mustache_spark->merge_data(
array(
'comment' => 'A comment text thingy.'
)
);
$this->mustache_spark->merge_template(
array(
'header' => 'header',
'footer' => 'footer'
)
);
$this->mustache_spark->render();
Ricard Aspeljung cordazar@gmail.com
Mustache-Spark is released under the DBAD License. You can read the license here.