Sha256: 43f2d473bbc1a85a7766539061f226fe6b1127c0cb445835928c5117c136b088

Contents?: true

Size: 298 Bytes

Versions: 9

Compression:

Stored size: 298 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'erb'

module Coco
  
  # From me, you can obtain ERB templates.
  class Template
    # @param [String] filename An ERB template
    # @return [ERB]
    def self.open filename
      io = IO.readlines(filename, nil)
			ERB.new(io[0], nil, '><')
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
coco-0.9 lib/coco/formatter/template.rb
coco-0.8 lib/coco/formatter/template.rb
coco-0.7.1 lib/coco/formatter/template.rb
coco-0.7 lib/coco/formatter/template.rb
coco-0.6 lib/coco/formatter/template.rb
coco-0.5.1 lib/coco/formatter/template.rb
coco-0.5 lib/coco/formatter/template.rb
coco-0.4.2 lib/coco/formatter/template.rb
coco-0.4.1 lib/coco/formatter/template.rb