bouzuya.hatenablog.com

ぼうずやのにっき

b-html/b-html-plus 0.3.0 をつくった

b-html/b-html-plus 0.3.0

b-html/b-html-plus 0.3.0 をつくった。

b-html/b-html-plusb-html/b-html をテンプレートエンジン化したもの。Vue.js + b-html に近い構文にしてある。

0.3.0 での変更点は通常の利用の範囲ではほとんどない。b-html-plus の format option を指定した際に formatter に渡される引数を変更した。 b-html 0.9.0 で公式になった format option の活用例になった。……といっても以下のように内部オブジェクトをそのまま返してもらっているだけなんだけど。

bHtml = require 'b-html-plus'
# ...
bHtml source, format: (nodes) -> nodes

また今日は b-html/mithril-b-html-plusリポジトリをつくった。明日はここに 2015-08-27 につくった mithril-b-html-plus Gist の内容を元に npm package をつくっていく予定。