Skip to content

Instantly share code, notes, and snippets.

@bluesmoon
Created February 24, 2009 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluesmoon/69589 to your computer and use it in GitHub Desktop.
Save bluesmoon/69589 to your computer and use it in GitHub Desktop.
// Constructor
HTML.Template({
tmpl_str: tmpl,
OR
file_url: foo,
file_type: tmpl|js,
});
// Setting
HTML.Template.param({
key: value,
...
});
// Getting all
HTML.Template.param();
// Getting foo
HTML.Template.param('foo');
// Parse template and return output
HTML.Template.output();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment