1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

doc WLang templates in README.es

This commit is contained in:
Gabriel Andretta 2012-06-30 22:32:49 -03:00
parent bd84f2c66e
commit e887811320

View file

@ -551,6 +551,15 @@ Las opciones <tt>:callback</tt> y <tt>:variable</tt> se pueden utilizar para dec
var resource = {"foo":"bar","baz":"qux"}; present(resource); var resource = {"foo":"bar","baz":"qux"}; present(resource);
=== Plantillas WLang
Dependencias:: {wlang}[https://github.com/blambeau/wlang/]
Extensiones de Archivo:: <tt>.wlang</tt>
Ejemplo:: <tt>wlang :index, :locals => { :clave => 'valor' }</tt>
Como no vas a poder llamar a métodos de Ruby (excepto por +yield+) desde una
plantilla WLang, casi siempre vas a querer pasarle locales.
=== Plantillas Embebidas === Plantillas Embebidas
get '/' do get '/' do