{{tag>node js java-script "template processor"}}

====== Jade ======


Jade - это высокопроизводительный шаблонизатор,
источником вдохновенья для создания которого
послужил Haml.

  * http://jade-lang.com/
  * https://github.com/visionmedia/jade
  * http://jsman.ru/jade/


===== Пример .tpl =====

<code jade>
doctype html
html(lang="en")
  head
    title= pageTitle
    script(type='text/javascript').
      if (foo) bar(1 + 5)
  body
    h1 Jade - node template engine
    #container.col
      if youAreUsingJade
        p You are amazing
      else
        p Get on it!
      p.
        Jade is a terse and simple templating language with a
        strong focus on performance and powerful features.
</code>


===== Модули =====

  * https://github.com/kizu/bemto
  * https://github.com/viniwrubleski/jade-php

===== Статьи =====

  * http://habrahabr.ru/post/224391/
  * http://nodeguide.ru/doc/dailyjs-nodepad/node-tutorial-4/

===== Видео уроки / Screencast =====

  * https://www.google.ru/search?q=jade+screencast&oq=jade+screencast&aqs=chrome..69i57j69i60.6212j0j4&sourceid=chrome&es_sm=91&ie=UTF-8#newwindow=1&q=jade+screencast&start=20