Sha256: e9fcb11023e2ea1b66e39683c261dc707d5cdc1ca0ccc4e96ddd51c91b3825be

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

require "haml"

module Nyara
  class View
    module Haml
      def self.src template
        e = ::Haml::Engine.new template
        # todo trim mode
        <<-RUBY
_hamlout = ::Haml::Buffer.new(nil, encoding: 'utf-8'); _hamlout.buffer = @_nyara_view.out
#{e.precompiled}
_hamlout.buffer.join
RUBY
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nyara-0.1.pre.2 lib/nyara/view_handlers/haml.rb
nyara-0.1.pre.1 lib/nyara/view_handlers/haml.rb
nyara-0.1.pre.0 lib/nyara/view_handlers/haml.rb
nyara-0.0.1.pre.9 lib/nyara/view_handlers/haml.rb
nyara-0.0.1.pre.8 lib/nyara/view_handlers/haml.rb