Skip to content

Commit

Permalink
add 'Agregando Tu Propio Motor de Renderizado' section to spanish readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gnandretta authored and rkh committed Jan 13, 2011
1 parent a0cb11e commit 09ddc41
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.es.rdoc
Expand Up @@ -568,6 +568,23 @@ las plantillas Textitle, podés hacer lo siguiente:


Tilt.register :tt, Tilt[:textile] Tilt.register :tt, Tilt[:textile]


=== Agregando Tu Propio Motor de Renderizado

Primero, registrá tu motor con Tilt, y después, creá tu método de renderizado:

Tilt.register :mipg, MiMotorParaPlantillaGenial

helpers do
def mypg(*args) render(:mypg, *args) end
end

get '/' do
mypg :index
end

Renderiza <tt>./views/index.mypg</tt>. Mirá https://github.com/rtomayko/tilt
para aprender más de Tilt.

== Ayudantes == Ayudantes


Usá el método top-level <tt>helpers</tt> para definir métodos ayudantes que Usá el método top-level <tt>helpers</tt> para definir métodos ayudantes que
Expand Down

0 comments on commit 09ddc41

Please sign in to comment.