Skip to content

lorepozo/jstemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#JSTemplate ###Templating in just 10 lines

Add these ten lines (in jstemplate.js) of pure javascript to turn the {{ moustaches }} in your template to corresponding javascript output.

Use {{! ... }} for multi-line statements (e.g. for,if,etc). See the example to learn more!

example image

###Usage: To run the template script on an element e, use e.moustache(controller), where controller is an optional object referenced in the scope of all embedded javascript.

About

A 10-line Pure JS {{Moustache}} Templating Script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published