insin/DOMBuilder
View on GitHub ↗ ★ 118 JavaScript archived
DOM builder with multiple output formats
5 mentions on Hacker News by 3 people: 0 stories, 5 comments · first 2012-02-14 · latest 2020-05-11
20082026
-
…are various other implementations of similar ideas - https://github.com/markgandolfo/el.js and https://github.com/insin/DOMBuilder and https://github.com/jed/domo and so on. el.js came to my attention a long time ago, and I ended up…
comment by andrewla · 2020-05-11 · in What if we'd had better HTML-in-JS syntax all along? -
Also there is DOMBuilder https://github.com/insin/DOMBuilder which has separate modes for using HTML mock elements on (node.js) server-side or DOM elements in browsers. The mock elements are implementing only a very small set of the DOM…
comment by spyder · 2013-04-03 · in Pithy.js - An internal DSL for generating HTML in JavaScript -
Here's another one I did: https://github.com/insin/DOMBuilder/ It also allows you to generate HTML strings from the same code and create templates, with template inheritance, using the same sort of syntax.
comment by insin · 2012-04-26 · in Laconic: A Sane Method of Generating DOM Content in JavaScript -
…output DOM Elements or HTML (escaped by default) from the same code by flipping its output mode: https://github.com/insin/DOMBuilder The output modes are implemented as plugins, so you can also add other sorts of things, like the template…
comment by insin · 2012-02-21 · in Better than templates, building highly dynamic web pages -
…no mistaking their origin and with no ambiguous assignment involved. Simple example with includes: https://github.com/insin/DOMBuilder/blob/master/examples/red... More extensive example of inheritable templates for a CRUD admin app:…
comment by insin · 2012-02-14 · in JavaScript: Warts and workarounds