Created
November 24, 2009 08:16
-
-
Save koseki/241732 to your computer and use it in GitHub Desktop.
This file contains 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
<%= _erb body %> |
This file contains 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 ErbHelper | |
# Evaluate ERB source. | |
def _erb(source) | |
@renderer.render_string(source, @obj) | |
end | |
end | |
end |
This file contains 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: erb | |
--- | | |
<%= Time.now.to_s %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment