diff --git a/src/ignite-template.js b/src/ignite-template.js index 58a1830..97d1b49 100644 --- a/src/ignite-template.js +++ b/src/ignite-template.js @@ -19,6 +19,8 @@ class IgniteTemplate { this.children.push(new html(items[i])); } else if (items[i] instanceof String || typeof items[i] === 'string') { this.children.push(new html(items[i])); + } else if (items[i] instanceof Number || typeof items[i] === 'number') { + this.children.push(new html(items[i])); } else if (items[i] instanceof IgniteTemplate || items[i].prototype instanceof IgniteTemplate) { this.children.push(items[i]); } else { @@ -89,6 +91,8 @@ class IgniteTemplate { this.children.push(new html(items[i])); } else if (items[i] instanceof String || typeof items[i] === 'string') { this.children.push(new html(items[i])); + } else if (items[i] instanceof Number || typeof items[i] === 'number') { + this.children.push(new html(items[i])); } else if (items[i] instanceof IgniteTemplate || items[i].prototype instanceof IgniteTemplate) { this.children.push(items[i]); } else {