エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
NonBlocking.io - Malte Ubl's Asynchronous Identity Disorder: A DSL for generating HTML with JS
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
NonBlocking.io - Malte Ubl's Asynchronous Identity Disorder: A DSL for generating HTML with JS
Maybe some people find this interesting. I created a little DSL to generate HTML with JavaScript.... Maybe some people find this interesting. I created a little DSL to generate HTML with JavaScript. Here is an example:var things = [{text: "Hello"}, {text: "World"}]; with(HTML) { var html = div({ id: "foo", content: a({ href: "#", content: ["test", span("bar")] }) }) + div({ className: "baz", content: map(things, function (thing) { return p(thing.text) }) }); alert(html) document.write(html) } Yes