Created
October 6, 2010 17:55
-
-
Save ramontayag/613780 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
# HAML view | |
= f.text_area :javascript, :description => "Javascript typed here will come out in this page's javascript's section.", :rows => 20, :cols => 50, 'data-bespinoptions' => %q({ "syntax": "js" }).html_safe | |
# Output | |
<textarea cols="50" data-bespinoptions="{ "syntax": "js" }" description="Javascript typed here will come out in this page's javascript's section." id="page_javascript" name="page[javascript]" rows="20"></textarea> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, and yes, in case you know bespin, I know that { "syntax": "js" } is incomplete.