Skip to content

neilberget/LocateMyTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocateMyTemplate

Usage:

<script type="text/html" id="my_template">
  <li>
    <h3>{title}</h3>
    <p>{description}</h3>
  </li>
</script>

or

<script type="text/haml" id="my_template">
  %li
    %h3 =title
    %p =description
</script>

Then in your javascript:

lmt.my_template({
  title:"My Title", 
  description:"The description"
});

Thanks to: ICanHaz.js: http://icanhazjs.com/ jQuery templating library that uses the mustache templating library

Haml-js: https://github.com/evilstreak/haml-js Port of haml to javascript

About

Simple mootools templating

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published