Class: Hypertemplate::Hook::Tilt::HypertemplateTilt

Inherits:
Object
  • Object
show all
Defined in:
lib/hypertemplate/hook/tilt.rb

Instance Method Summary collapse

Constructor Details

#initializeHypertemplateTilt

Returns a new instance of HypertemplateTilt.



9
10
11
# File 'lib/hypertemplate/hook/tilt.rb', line 9

def initialize
  @registry = Hypertemplate::Registry.new
end

Instance Method Details

#new(view = nil, line = 1, options = {}, &block) ⇒ Object

unfortunately Tilt uses a global registry



14
15
16
# File 'lib/hypertemplate/hook/tilt.rb', line 14

def new(view = nil, line = 1, options = {}, &block)
  HypertemplateTemplate.new(@registry, view, line,options, &block)
end