lib/tilt.rb
# Template source; loaded from a file or given directly.
Template source; loaded from a file or given directly.
Template source ; loaded from a file or given directly .
def compile_template_method(locals)
      source, offset = precompiled(locals)
      offset += 5
      method_name = "__tilt_#{Thread.current.object_id.abs}"
      Object.class_eval <<-RUBY, eval_file, line - offset
        TOPOBJECT.class_eval do
          def #{method_name}(locals)
            Thread.current[:tilt_vars] = [self, locals]
            class << self
              this, locals = Thread.current[:tilt_vars]
              this.instance_eval do
               #{source}
              end
            end
          end
        end
      RUBY
      unbind_compiled_method(method_name)
    end
def compile_template_method ( locals ) source , offset = precompiled ( locals ) offset += 5 method_name = "__tilt_#{Thread.current.object_id.abs}" Object . class_eval <<-RUBY , eval_file , line - offset 
        TOPOBJECT.class_eval do
          def  #{ method_name } (locals)
            Thread.current[:tilt_vars] = [self, locals]
            class << self
              this, locals = Thread.current[:tilt_vars]
              this.instance_eval do
                #{ source } 
              end
            end
          end
        end
       RUBY unbind_compiled_method ( method_name ) end
Template source; loaded from a file or given directly.
Template source ; loaded from a file or given directly .
locals
<not_specific>