Sha256: 8a5d618495cb2fd46ab306b55048ea44d6bb60af30e9f18e310f4aa56b41f603

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

module Erbse
  # Compiles the runtime method for an ERB input string.
  class Template
    def initialize(input, properties={})
      generator = RubyGenerator.new
      converter = Basic::Converter.new(properties, generator)
      @src      = converter.convert(input)
    end

    def call
      @src
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erbse-0.0.2 lib/erbse/template.rb