For example, the documentation for Mustache.js shows the following:
var compiledTemplate = Mustache.compile(stringTemplate);
var templateOutput = compiledTemplate(templateData);
This enables each definition to have a readme if necessary.
Also a .json metadata file to help with package managers.
And last, to have different versions of the definitions.