Module $_.template
Defined in: template.js.
Method Summary
Method Detail
$_.template.parse(string, object): string
Formats a template
Parameters:
string | template_name | |
object | replace_data |
Returns:
string |
$_.template.apply(string, string, object)
Inserts the formatted template into the page. If the url and data parameters are passed, it will retrieve a template file from the same domain, parse, and insert the template into the page.
Parameters:
string | parsed_template/template_name | |
string?, Default: | url | |
object?, Default: | data |