Skip to content

Quick start

Artem Shalaev edited this page Jul 17, 2015 · 1 revision
  • Include script
<script src="smarty.js"></script>
  • Configure
var templates = {...}; // Your templates 

smarty.configure({
	includeHandler: function(includes){
		includes.forEach(function(id){
			smarty.Template(id, templates[id]);
		});
	}
});
  • Enjoy
Clone this wiki locally