Sha256: 8ee9bffe836a5d86c9f3d82dcdbe39ee77a3bc503cfca01c857ef37abd63f5c5

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

require 'erb'

module Coco

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coco-0.15.0 lib/coco/formatter/template.rb
coco-0.14.0 lib/coco/formatter/template.rb