Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mustache implementation for codeigniter through Sparks
PHP
Branch: master
Failed to load latest commit information.
config
libraries
vendor
readme.md first commit. version 0.0.1
spark.info

readme.md

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.

Something went wrong with that request. Please try again.