Sha256: 955ecf037b3e5ac792a21e85422d085e109badf8ddb005b4dcde4d7ed9dc8bc6

Contents?: true

Size: 388 Bytes

Versions: 76

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true
module Hamlit
  class Filters
    class Cdata < TextBase
      def compile(node)
        compile_cdata(node)
      end

      private

      def compile_cdata(node)
        temple = [:multi]
        temple << [:static, "<![CDATA[\n"]
        compile_text!(temple, node, '    ')
        temple << [:static, "\n]]>"]
        temple
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
hamlit-2.12.0-java lib/hamlit/filters/cdata.rb
hamlit-2.12.0 lib/hamlit/filters/cdata.rb
hamlit-2.11.1 lib/hamlit/filters/cdata.rb
hamlit-2.11.0-java lib/hamlit/filters/cdata.rb
hamlit-2.11.0 lib/hamlit/filters/cdata.rb
hamlit-2.10.1-java lib/hamlit/filters/cdata.rb
hamlit-2.10.1 lib/hamlit/filters/cdata.rb
hamlit-2.10.0-java lib/hamlit/filters/cdata.rb
hamlit-2.10.0 lib/hamlit/filters/cdata.rb
hamlit-2.9.5-java lib/hamlit/filters/cdata.rb
hamlit-2.9.4-java lib/hamlit/filters/cdata.rb
hamlit-2.9.5 lib/hamlit/filters/cdata.rb
hamlit-2.9.4 lib/hamlit/filters/cdata.rb
hamlit-2.9.3-java lib/hamlit/filters/cdata.rb
hamlit-2.9.3 lib/hamlit/filters/cdata.rb
hamlit-2.9.2-java lib/hamlit/filters/cdata.rb
hamlit-2.9.2 lib/hamlit/filters/cdata.rb
hamlit-2.9.1-java lib/hamlit/filters/cdata.rb
hamlit-2.9.1 lib/hamlit/filters/cdata.rb
hamlit-2.9.0 lib/hamlit/filters/cdata.rb