Skip to content

Commit

Permalink
add BlueCloth example to spanish readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gnandretta committed Jan 12, 2011
1 parent 8a49d5b commit 5a17ea0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.es.rdoc
Expand Up @@ -359,12 +359,26 @@ generalmente vas a usarlo en combinación con otro motor de renderizado:

erb :resumen, :locals => { :texto => markdown(:introduccion) }

Tené en cuenta que también podés llamar al método markdown desde otras
Tené en cuenta que también podés llamar al método +markdown+ desde otras
plantillas:

%h1 Hola Desde Haml!
%p= markdown(:saludos)

También es posible parsear Markdown con BlueCloth en lugar de RDiscount:

require 'bluecloth'

Tilt.register 'markdown', BlueClothTemplate
Tilt.register 'mkd', BlueClothTemplate
Tilt.register 'md', BlueClothTemplate

get '/' do
markdown :index
end

Renderiza <tt>./views/index.md</tt> con BlueCloth.

=== Plantilla Textile

La gem/librería RedCloth es necesaria para renderizar plantillas Textile:
Expand Down

0 comments on commit 5a17ea0

Please sign in to comment.