Skip to content
nikkorn edited this page Oct 5, 2015 · 1 revision

#Usage

##Defining a ToffleJS template ToffleJS templates are script elements with a type of 'toffle-template'. Templates contain both our output and the ToffleJS code blocks that wrap the templating logic.

<script id="test-template" type="text/toffle-template">
...
</script>

Templates must have an 'id' attribute

Clone this wiki locally