I just downloaded Hobo from Github

Found this in dryml_builder.rb

def build(local_names, auto_taglibs, src_mtime)

  when :def
    src = erb_process(instruction[:src], true)
    @environment.class_eval(src, template_path, instruction
[:line_num])

...

    def erb_process(erb_src, method_def=false)
      trim_mode = ActionView::TemplateHandlers::ERB.erb_trim_mode
      erb = ERB.new(erb_src, nil, trim_mode, "output_buffer")
      src = erb.src[("output_buffer = '';").length..-(";
output_buffer".length)]

      if method_def
        src.sub /^\s*def.*?\(.*?\)/, '\0 __in_erb_template=true; '
      else
        "__in_erb_template=true; " + src
      end
    end

Is this the place to extend <def tag=".."> for Hobo I wonder?

Kris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to