I have been using the rails equivalent of the following for years and
it has simplified my life significantly when working on a large website
(I patched the rails generators to put it at the bottom of the files,
but I'm not quite up to that in hobo yet). In rails, it helped point me
to the right files, especially if I had been working elsewhere on the
site for a while when I get a bug report (yeah :-( ).
I manually put it in appropriate places in my hobo dryml files and it
helps just like it did BH (before Hobo) provided I'm the one who
generated the file. Could we have the hobo dryml generators put
something like it in the appropriate places, too?
<% if Rails.env == 'development' %> <p class="dryml_file">"#{__FILE__},
#{__LINE__}"</p> <% end %>
It causes one or more extraneous lines in the output as in:
"app/views/front/index.dryml, 28"
that only appear in the development mode, and can be easily removed by
hiding the dryml_file class in the css if you really need to see the
precise appearance of your pages during development. I usually set its
css to the smallest-readable font to keep it as unobtrusive as possible.
In my case, having this available would eliminate most of the "Where is
.... " posts I make to the group :-[ .
Thanks,
Don Z.
P.S. It could be simplified by leaving off the conditional and having
the css hide the output in production mode, but doing so would leave
bits and pieces of extraneous html hanging around in the page outputs,
so I think my current implementation is preferable.
--
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.