[Rg 132] [PATCH] Textile(RedCloth) template engine

Keita Yamaguchi keita.yamaguchi at gmail.com
Mon Jan 21 02:10:38 EST 2008


Hi,

This is a patch for adding the Textile(RedCloth) template engine.

Usage:

class MyController < Ramaze::Controller
  engine :Textile

  def index
    "h1. hello" # => "<h1>hello</h1>"
  end

  def with_erb
    @one = 1
    @two = 2
    "h2. <%= @one %> + <%= @two %> = <%= @one + @two %>"
    # => "<h2>1 + 2 = 3</h2>"
  end
end

Regards,
Keita Yamaguchi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textile.patch.gz
Type: application/x-gzip
Size: 3397 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/ramaze-general/attachments/20080121/fdf7bd6c/attachment.gz 


More information about the Ramaze-general mailing list