2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00
discourse/app
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
..
assets FEATURE: Use Glimmer compiler for widget templates 2017-09-01 09:28:16 -04:00
controllers FEATURE: allow API to mark accounts as approved on creation 2017-08-28 15:36:46 -04:00
helpers FEATURE: add custom open graph tag for ignoring canonical url 2017-08-15 19:24:20 +05:30
jobs FEATURE: show tags in search results 2017-08-25 11:52:59 -04:00
mailers FIX: digest emails should not include posts that are still in the edit grace period 2017-08-14 12:47:33 -04:00
models SECURITY: do not include links from whispers in topic summary map 2017-08-31 23:44:54 +05:30
serializers Split alias levels in mentionable and messageable levels. (#5065) 2017-08-28 12:32:08 -04:00
services FIX: staged users should get emails on must_approve_users sites 2017-08-28 17:32:07 -04:00
views Improved metadata for tags. (#5067) 2017-08-28 13:11:34 -04:00