Sha256: 6822c9ea9066dac59c4cbe26d169b1cb5e70e159d10484ac727476f9f3cebf2b

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

require 'tilt'

module Markaby
  module Tilt
    class Template < ::Tilt::Template
      def evaluate(scope, locals, &block)
        builder = Markaby::Builder.new({}, scope)
        builder.locals = locals
        builder.instance_eval(data, __FILE__, __LINE__)
        builder.to_s
      end

      def prepare; end
    end
  end
end

module Tilt
  MarkabyTemplate = Markaby::Tilt::Template
  register "mab", MarkabyTemplate
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
markaby-0.6.10 lib/markaby/tilt.rb
markaby-0.6.9 lib/markaby/tilt.rb
markaby-0.6.8 lib/markaby/tilt.rb
markaby-0.6.7 lib/markaby/tilt.rb
markaby-0.6.6 lib/markaby/tilt.rb