Skip to content

moridianmess/templateEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

templateEngine

A lightweight promise driven template engine.

Full Documentation and examples are available at moridiweb.com.

<script src="template.js"></script>

templateEngine.load(template, data, target, clear).then(function( template, data ) { });

Where the input parameter template is either a HTML template string or the URL to a template file. Data is a PlainObject, an array of objects or the URL to either an array or object. Target is a jQuery element to load the template(s) into or null. Clear is a Boolean whether to clear the target first.

Where the output parameter template is the last executed template and data is the data from the input.

About

A lightweight template engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published