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-3.0.3-java lib/hamlit/filters/cdata.rb
hamlit-3.0.3 lib/hamlit/filters/cdata.rb
hamlit-3.0.2-java lib/hamlit/filters/cdata.rb
hamlit-3.0.2 lib/hamlit/filters/cdata.rb
hamlit-3.0.1-java lib/hamlit/filters/cdata.rb
hamlit-3.0.1 lib/hamlit/filters/cdata.rb
hamlit-3.0.0-java lib/hamlit/filters/cdata.rb
hamlit-3.0.0 lib/hamlit/filters/cdata.rb
hamlit-2.16.2-java lib/hamlit/filters/cdata.rb
hamlit-2.16.2 lib/hamlit/filters/cdata.rb
hamlit-2.16.1-java lib/hamlit/filters/cdata.rb
hamlit-2.16.1 lib/hamlit/filters/cdata.rb
hamlit-2.16.0-java lib/hamlit/filters/cdata.rb
hamlit-2.16.0 lib/hamlit/filters/cdata.rb
hamlit-2.15.2-java lib/hamlit/filters/cdata.rb
hamlit-2.15.2 lib/hamlit/filters/cdata.rb
hamlit-2.15.1-java lib/hamlit/filters/cdata.rb
hamlit-2.15.1 lib/hamlit/filters/cdata.rb
hamlit-2.15.0-java lib/hamlit/filters/cdata.rb
hamlit-2.15.0 lib/hamlit/filters/cdata.rb