Robin Ward
dffb1fc4ee
FEATURE: Use Glimmer compiler for widget templates
Widgets can now specify a template which is precompiled using Glimmer's
AST and then converted into our virtual dom code.
Example:
```javascript
createWidget('post-link-arrow', {
template: hbs`
{{#if attrs.above}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_up"}}>
{{fa-icon "arrow-up"}}
</a>
{{else}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_down"}}>
{{fa-icon "arrow-down"}}
</a>
{{/if}}
`,
click() {
DiscourseURL.routeTo(this.attrs.shareUrl);
}
});
```
2017-09-01 09:28:16 -04:00
..
2017-08-07 10:43:09 +09:00
2017-08-15 12:41:51 +05:30
2017-08-29 01:48:30 +02:00
2017-07-17 11:41:34 -04:00
2013-05-30 16:49:57 +10:00
2017-07-28 10:20:09 +09:00
2016-11-02 22:19:16 +11:00
2017-09-01 09:28:16 -04:00
2017-07-28 10:20:09 +09:00
2017-08-28 12:59:56 -04:00
2017-08-22 13:47:29 +01:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2014-05-27 19:15:56 -05:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2013-05-09 19:48:10 +10:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00
2017-07-28 10:20:09 +09:00