riot-js

Open full view…

Raw

Richard Bondi
Fri, 06 Feb 2015 01:51:56 GMT

```` <raw> <span></span> this.root.innerHTML = opst.content </raw> ```` called like: ```` <div each={ inp in inputs }> <raw content="<{ inp.tag }>" /> </div> ```` this creates my custom tags on the dom but they do not render ```` <raw> <span></span> riot.mountTo(this.root, opts.content) </raw> ```` works with ```` <raw content="{ inp.tag }" /> ```` I am apprehensive about abusing `mountTo`, any input appreciated full example: http://plnkr.co/edit/n5hLpG?p=preview

Stuart Rackham
Fri, 06 Feb 2015 03:16:27 GMT

Looks like there's a typo, `opst` should be `opts` in: this.root.innerHTML = opst.content