projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 1786-replace-jekyll-with-zenweb
[arvados.git]
/
doc
/
zenweb-textile.rb
1
require 'zenweb'
2
3
module ZenwebTextile
4
VERSION = '0.0.1'
5
end
6
7
module Zenweb
8
class Page
9
10
##
11
# Render a page's textile and return the resulting html
12
def render_textile page, content
13
textile body
14
end
15
16
##
17
# Render textile in +content+
18
def textile content
19
require 'RedCloth'
20
@textile = RedCloth.new(content).to_html
21
end
22
end
23
end