Bryan,

Thanks for the tip!

Unfortunately, when I tried it I got many html comments, as in:

<!--[DRYML|def|login-page|50|/usr/local/lib/ruby/gems/1.8/gems/hobo-1.3.0.pre31/lib/hobo/rapid/taglibs/rapid_user_pages.dryml[--> <!--[DRYML|call|simple-page|52|/usr/local/lib/ruby/gems/1.8/gems/hobo-1.3.0.pre31/lib/hobo/rapid/taglibs/rapid_user_pages.dryml[--><!--[DRYML|def|simple-page|4|/usr/local/lib/ruby/gems/1.8/gems/hobo-1.3.0.pre31/lib/hobo/rapid/taglibs/rapid_user_pages.dryml[--> <!--[DRYML|call|page|5|/usr/local/lib/ruby/gems/1.8/gems/hobo-1.3.0.pre31/lib/hobo/rapid/taglibs/rapid_user_pages.dryml[--><!--[DRYML|def|page|11|app/views/taglibs/application.dryml[--> <!--[DRYML|call|old-page|12|app/views/taglibs ...

rendered along with my normal output; so many that the view was pretty much useless.

Not knowing of any dryml editors, I used:

DRYML_EDITOR=abc
export DRYML_EDITOR

as the enabling definition. (I did hunt through the code for references to DRYML_EDITOR to see if there was something of use there, but only found a definition of code_editor which was not used anywhere else, so I had to presume that any non-blank value of DRYML_EDITOR was sufficient).

Any idea of what I did wrong?

Don Z.

P.S. Your reply below crossed in the mail with my reply to Domizio outlining a crude but effective mod to the dryml templates. I saw it yesterday, but had to start the installation of 3000 ft of CAT6 cable in our new office so had to wait till today to try it.

On 4/13/2011 1:39 PM, Bryan Larsen wrote:
Such a simple solution to a major pain point. So I thought to myself, "there must be a reason it hasn't been done.". So I went into Hobo to try and hack it in and see what happens.

When I got to the right place, I found this in dryml/template.rb:

    def include_source_metadata
# disabled for now -- we're still getting broken rendering with this feature on
      return false
@include_source_metadata = RAILS_ENV == "development" && !ENV['DRYML_EDITOR'].blank? if @include_source_metadata.nil?
      @include_source_metadata
    end

I commented out the "return false" and set the DRYML_EDITOR variable in my environment, and it seems to work fine. Give it a try and let me know if it breaks anything!

cheers,
Bryan

P.S. Please don't start new message by replying to an old one unless it's actually a reply. Many of us have properly nested email readers, so your message becomes hidden in the other thread.


--
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