Skip to content

Commit

Permalink
WLang templates in README.ru
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolg committed Jul 7, 2012
1 parent 29696bf commit be87ed2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.ru.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,15 @@ Thin — это более производительный и функцион

var resource = {"foo":"bar","baz":"qux"}; present(resource);

=== WLang шаблоны

Зависимости:: {wlang}[https://github.com/blambeau/wlang/]
Расширения файлов:: <tt>.wlang</tt>
Пример:: <tt>wlang :index, :locals => { :key => 'value' }</tt>

Так как в WLang шаблонах невозможно вызывать методы из Ruby напрямую (за исключением +yield+), то
вы почти всегда будете передавать в шаблон локальные переменные.

=== Встроенные шаблоны

get '/' do
Expand Down

0 comments on commit be87ed2

Please sign in to comment.