# Is it just me, or is Hyperscript hideous?

**URL:** https://meta.discourse.org/t/is-it-just-me-or-is-hyperscript-hideous/131635
**Category:** Development
**Created:** [October 22, 2019, 1:42pm UTC](https://meta.discourse.org/t/is-it-just-me-or-is-hyperscript-hideous/131635 "2019-10-22T13:42:36Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [October 24, 2019, 8:49am UTC](https://meta.discourse.org/t/is-it-just-me-or-is-hyperscript-hideous/131635/21 "2019-10-24T08:49:29Z")

</div>

I will give a more detailed example in few days, but I can confirm it works.

```plaintext
import hbs from 'discourse/widgets/hbs-compiler';
import { createWidget } from "discourse/widgets/widget";

export default createWidget("foo", {
  template: hbs`
    <p>MY TEMPLATE</p>
  `
});

```

Used in a post with [wrap] and WidgetGlue:

 ![02](https://global.discourse-cdn.com/meta/original/3X/0/c/0c44e51095fb6f33a8279819d9da7e744429514a.png)

---

_[View the full topic](https://meta.discourse.org/t/is-it-just-me-or-is-hyperscript-hideous/131635)._
