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.14.6 lib/hamlit/filters/cdata.rb
hamlit-2.14.6-java lib/hamlit/filters/cdata.rb
hamlit-2.14.5-java lib/hamlit/filters/cdata.rb
hamlit-2.14.5 lib/hamlit/filters/cdata.rb
hamlit-2.14.4 lib/hamlit/filters/cdata.rb
hamlit-2.14.4-java lib/hamlit/filters/cdata.rb
hamlit-2.14.3-java lib/hamlit/filters/cdata.rb
hamlit-2.14.3 lib/hamlit/filters/cdata.rb
hamlit-2.14.2-java lib/hamlit/filters/cdata.rb
hamlit-2.14.2 lib/hamlit/filters/cdata.rb
hamlit-2.14.0 lib/hamlit/filters/cdata.rb
hamlit-2.14.0-java lib/hamlit/filters/cdata.rb
hamlit-2.14.1-java lib/hamlit/filters/cdata.rb
hamlit-2.14.1 lib/hamlit/filters/cdata.rb
hamlit-2.13.2-java lib/hamlit/filters/cdata.rb
hamlit-2.13.2 lib/hamlit/filters/cdata.rb
hamlit-2.13.1-java lib/hamlit/filters/cdata.rb
hamlit-2.13.1 lib/hamlit/filters/cdata.rb
hamlit-2.13.0-java lib/hamlit/filters/cdata.rb
hamlit-2.13.0 lib/hamlit/filters/cdata.rb