Class: FastHaml::FilterCompilers::Plain
- Defined in:
- lib/fast_haml/filter_compilers/plain.rb
Instance Method Summary collapse
Instance Method Details
#compile(texts) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/fast_haml/filter_compilers/plain.rb', line 6 def compile(texts) temple = [:multi] texts = strip_last_empty_lines(texts) compile_texts(temple, texts[0 .. -2]) temple << text_compiler.compile(texts[-1]) << [:newline] temple end |