Sha256: 050b020945373d5680a0d565fbc5e58fae1c519394b716fb862563824c06a4b0

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true
require_relative 'base'

module Faml
  module FilterCompilers
    class Cdata < Base
      def compile(ast)
        temple = [:multi, [:static, "<![CDATA[\n"], [:newline]]
        compile_texts(temple, ast.lineno, ast.texts, tab_width: 4)
        temple << [:static, "\n]]>"]
      end
    end

    register(:cdata, Cdata)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 lib/faml/filter_compilers/cdata.rb
faml-0.8.0 lib/faml/filter_compilers/cdata.rb