discourse/test/javascripts/widgets
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
..
actions-summary-test.js.es6 REFACTOR: Replace some `fa-*` uses with helpers 2017-07-27 14:55:41 -04:00
button-test.js.es6 UX: Add consistent classes to buttons 2017-08-01 17:24:06 -04:00
hamburger-menu-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
header-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
home-logo-test.js.es6 REFACTOR: Replace some `fa-*` uses with helpers 2017-07-27 14:55:41 -04:00
post-links-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
post-stream-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
post-test.js.es6 REFACTOR: Replace some `fa-*` uses with helpers 2017-07-27 14:55:41 -04:00
poster-name-test.js.es6 REFACTOR: Replace some `fa-*` uses with helpers 2017-07-27 14:55:41 -04:00
topic-participant-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
user-menu-test.js.es6 Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
widget-test.js.es6 FEATURE: Use Glimmer compiler for widget templates 2017-09-01 09:28:16 -04:00