module Tilt
def self.new(file, line=nil, options={}, &block)
Create a new template for the given file using the file's extension
def self.new(file, line=nil, options={}, &block) if template_class = self[file] template_class.new(file, line, options, &block) else fail "No template engine registered for #{File.basename(file)}" end end