Class: Faml::FilterCompilers::Cdata
- Defined in:
- lib/faml/filter_compilers/cdata.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#compile(ast) ⇒ Object
7 8 9 10 11 |
# File 'lib/faml/filter_compilers/cdata.rb', line 7 def compile(ast) temple = [:multi, [:static, "<![CDATA[\n"], [:newline]] compile_texts(temple, ast.lineno, ast.texts, tab_width: 4) temple << [:static, "\n]]>"] end |