Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Cordazar/Mustache-Spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mustache-Spark

Mustache-Spark implements support for using the Mustache template system in CodeIgniter.

Introduction

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.

Set master template

$this->mustache_spark->set_master_template(
	'comment'
);

Adding data to mustache

$this->mustache_spark->merge_data(
	array(
		'comment' => 'A comment text thingy.'
	)
);

Merge template(s) into mustache

$this->mustache_spark->merge_template(
	array(
		'header' => 'header',
		'footer' => 'footer'
	)
);

Render all when you are done

$this->mustache_spark->render();

Author

Ricard Aspeljung cordazar@gmail.com

License

Mustache-Spark is released under the DBAD License. You can read the license here.

About

Mustache implementation for codeigniter through Sparks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages