(prototype)
| 146 | globalThis.template = template; |
| 147 | |
| 148 | export function Template(prototype) { |
| 149 | const proto = prototype; |
| 150 | const result = function($, it = {}) { |
| 151 | let self = (this) ? this : Object.create(proto); |
| 152 | self._create($, it); |
| 153 | return self; |
| 154 | } |
| 155 | result.prototype = proto; |
| 156 | result.template = template; |
| 157 | return result; |
| 158 | } |
| 159 | globalThis.Template = Template; |
| 160 | |
| 161 | // CONTENTS |
no outgoing calls
no test coverage detected