Sha256: 65447925b8e58f90a27ca88931790c266237e4a637eeadcabf1a95ae41964225

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.41.0 lib/nitro/element/javascript.rb
nitro-0.40.0 lib/nitro/element/javascript.rb