lib/darkext/sinatra.rb in darkhelmet-darkext-0.8.1 vs lib/darkext/sinatra.rb in darkhelmet-darkext-0.8.2

- old
+ new

@@ -19,12 +19,13 @@ def js_script_tag(script) partial("%script{ :type => 'text/javascript', :src => '/javascripts/#{script}.js' }") end def js_tag(script) + @dsh_script = script temp = ["%script{ :type => 'text/javascript' }", " //<![CDATA[", - " = #{script}", + " = @dsh_script", " //]]>"].join("\n") partial(temp) end def flash