2013-06-23から1日間の記事一覧
お遊びDSLの手始めに、Hiccupの機能拡張として単純なtable作成関数を作ってみた。 ソース (defn table-header-detail [cols] (map #(vector :th (:name %)) cols)) (defn table-header [cols] [:tr (table-header-detail cols)]) (defn table-record-detail …
お遊びDSLの手始めに、Hiccupの機能拡張として単純なtable作成関数を作ってみた。 ソース (defn table-header-detail [cols] (map #(vector :th (:name %)) cols)) (defn table-header [cols] [:tr (table-header-detail cols)]) (defn table-record-detail …