MCPcopy
hub / github.com/MagicMirrorOrg/MagicMirror / getTemplate

Method getTemplate

js/module.js:130–132  ·  view source on GitHub ↗

* Returns the template for the module which is used by the default getDom implementation. * This method needs to be overridden if the module wants to use a template. * It can either return a template string, or a template filename. * If the string ends with '.html' it's considered a file from

()

Source from the content-addressed store, hash-verified

128 * @returns {string} The template string of filename.
129 */
130 getTemplate () {
131 return `<div class="normal">${this.name}</div><div class="small dimmed">${this.identifier}</div>`;
132 }
133
134 /**
135 * Returns the data to be used in the template.

Callers 2

getDomMethod · 0.95
renderMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected