Skip to content

Commit efe167d

Browse files
committed
[snapshot]
1 parent aef7d43 commit efe167d

File tree

6 files changed

+822
-3
lines changed

6 files changed

+822
-3
lines changed

app/helpers/opal_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module OpalHelper
2+
def opal_tag(&block)
3+
opal_code = capture(&block)
4+
js_code = Opal.compile(opal_code)
5+
javascript_tag js_code
6+
end
7+
end

0 commit comments

Comments
 (0)