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:
parent
bd84f2c66e
commit
e887811320
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue