Sha256: 81d39138d0f3b2d1425e30f9b3f88873f4244cfb40f31f120d9e9eb443891bd4

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

require 'nitro/element'

class Nitro::Element

# A javescript helper.

class Javascript
  def render
    %~
    <script type="text/javascript" language="javascript">
    // <![CDATA[
      #{content}
    // ]]>
    </script> 
    ~      
  end
end

end

# * George Moschovitis <gm@navel.gr>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nitro-0.27.0 lib/nitro/element/javascript.rb
nitro-0.28.0 lib/nitro/element/javascript.rb
nitro-0.29.0 lib/nitro/element/javascript.rb
nitro-0.30.0 lib/nitro/element/javascript.rb
nitro-0.31.0 lib/nitro/element/javascript.rb