Skip to content

Commit

Permalink
[snapshot]
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Feb 4, 2014
1 parent aef7d43 commit efe167d
Show file tree
Hide file tree
Showing 6 changed files with 822 additions and 3 deletions.
7 changes: 7 additions & 0 deletions app/helpers/opal_helper.rb
@@ -0,0 +1,7 @@
module OpalHelper
def opal_tag(&block)
opal_code = capture(&block)
js_code = Opal.compile(opal_code)
javascript_tag js_code
end
end

0 comments on commit efe167d

Please sign in to comment.