Module.register("helloworld",{ /* ... */ getTemplate: function () { // Should return a template filename. // We could also allow users to return a tempalte string, // and check if the string ends with `.html` in that case // use the file, otherwiste the literal string. // // If it returns false, we are not using templates. // This should be the default implementation in module.js // // It this method returns a string, the template is parsed into // a dom object and used by the default getDom implementation. return "helloworld.html" }, getTemplateData: function () { // Should return an object. // If this method is not defined, the default implementation in module.js // should return an empty object {} return {name: "Michael"} } }