👻 boo-templates
a very lightweight (and spoooooky) templating tool (that is also your boo ❤️)
a Template
var template = "This is {{foo}}ey.";template;// => "This is barney."
var template = "This is <%foo%>ey." "<%" "%>";template;// => "This is barkley."
a Compiler(open, close)
the Compiler is what powers a template. It implements a global search on a given template string and evalutes anything between open
and close
delimiters.
open
and close
default to "{{"
and "}}"
var compiler = ;compiler;// => "BooTemplate"
var compiler = "<%" "%>";compiler;// => "Your Boo"