Sha256: 203db3c0f7e9428798accd30007a0c36016673df7d4b1324125ad43ac40b103e

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

require 'fast_haml/filter_compilers/base'

module FastHaml
  module FilterCompilers
    class Plain < Base
      def compile(texts)
        temple = [:multi]
        texts = strip_last_empty_lines(texts)
        compile_texts(temple, texts[0 .. -2])
        temple << text_compiler.compile(texts[-1])
        temple
      end
    end

    register(:plain, Plain)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fast_haml-0.1.1 lib/fast_haml/filter_compilers/plain.rb
fast_haml-0.1.0 lib/fast_haml/filter_compilers/plain.rb