Basic Javascript Template Function


Pass the function a template with curly brace delimited values e.g. <h1>{{ value }}</h1>
Returns a function that accepts an object of your values to be applied to the template;


When including files within your WordPress theme use locate_template() to allow them to be overridden by child themes.

locate_template() will search for the file within STYLESHEETPATH and TEMPLATEPATH, returning the path as a string if it exists.