Created
November 13, 2009 12:41
-
-
Save koseki/233797 to your computer and use it in GitHub Desktop.
SmallCage textile sample.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template: textile | |
--- | | |
h1. Textile Sample | |
* aaa | |
* bbb | |
* ccc | |
"SmallCage":http://github.com/bluemark/smallcage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SmallCage | |
module RedClothHelper | |
require "redcloth" | |
def render_textile(str) | |
RedCloth.new(str).to_html | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= header %> | |
<%= render_textile(body) %> | |
<%= footer %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment