タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

jadeに関するturusuke_0のブックマーク (2)

  • Jadeで便利なmixinの機能

    Jadeで便利なmixinの機能Jade に mixin というテンプレートをモジュール化する機能があるんだけど,Jade の github の issues 上で自分が探している機能が pull-request されていないかどうか探していたら,ここ で mixin の面白い機能があったので,ちょっとブログに書いて共有してみる. mixin のシンタックスシュガー通常 mixin は下記のように定義したら mixin <name>[(arg1, arg2, ...)] のように使う. //- msgboard define mixin msgboard(msg) p #{msg} //- use mixin msgboard('Hello World') + を定義した mixin 名の前に書くだけで,わざわざ mixin というキーワードを指定しなくても利用することができる. +msg

  • Feeding JSON data to Jade templates from a Gulp script

    Suppose you build something with Gulp using Jade templates. Suppose you have some data you've put to JSON. Lots of reason to do that. As succint as Jade is compared to HTML it's still not succint enough if you want to prototype a long list of remotely complex data. Any changes you want to make to the structure of your data or the presentation thereof, and you have to copy and paste all over again.

  • 1