Sha256: 13a21fde8b0da591208411638e9f45da439da7fbfa03f07c08b185d79ab42648
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
require 'fast_haml/filter_compilers/base' module FastHaml module FilterCompilers class Cdata < Base def compile(texts) temple = [:multi, [:static, "<![CDATA[\n"], [:newline]] compile_texts(temple, texts, tab_width: 4) temple << [:static, "]]>"] end end register(:cdata, Cdata) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_haml-0.1.9 | lib/fast_haml/filter_compilers/cdata.rb |