Class: Zenweb::Page
- Inherits:
-
Object
- Object
- Zenweb::Page
- Defined in:
- lib/zenweb-textile.rb
Instance Method Summary collapse
-
#render_textile(page, content) ⇒ Object
Render a page’s textile and return the resulting html.
-
#textile(content) ⇒ Object
Render textile in
content
.
Instance Method Details
#render_textile(page, content) ⇒ Object
Render a page’s textile and return the resulting html
12 13 14 |
# File 'lib/zenweb-textile.rb', line 12 def render_textile page, content textile body end |
#textile(content) ⇒ Object
Render textile in content
18 19 20 21 |
# File 'lib/zenweb-textile.rb', line 18 def textile content require 'RedCloth' @textile = RedCloth.new(content).to_html end |