Sha256: ca06a12b89b3965daac35849ca56247ec8b429d77437d125d0303b99d8f9da99

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

module Hem
  module Lib
    module Seed
      class Template
        def initialize(config)
          @config = config
        end

        def config
          @config
        end

        def render(content, filename)
          erb = ERB.new(content)
          erb.filename = filename
          erb.result binding
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hem-1.2.4 lib/hem/lib/seed/template.rb
hem-1.2.3 lib/hem/lib/seed/template.rb
hem-1.2.2 lib/hem/lib/seed/template.rb
hem-1.2.1 lib/hem/lib/seed/template.rb
hem-1.2.0 lib/hem/lib/seed/template.rb
hem-1.1.2 lib/hem/lib/seed/template.rb
hem-1.1.1 lib/hem/lib/seed/template.rb
hem-1.1.0 lib/hem/lib/seed/template.rb