On Feb 16, 5:36 pm, Bryan Larsen <[email protected]> wrote: > Using ERB in a Hobo app isn't "wrong": the agility tutorial uses ERB > to render mail for example. > I had noted that.
> DRYML can certainly be used to render non-HTML files. Most of the > tags in RAPID will add extraneous carriage returns, but most of the > tags in RAPID are useless in a non-HTML context anyways. > > Did you try a simple `render :partial => 'name'`. No, not prior to posting. I'm still learning Hobo, so my preference is to find out if there is a best practice for a particular technique and learn that, vice kludging something up to find out later there is a better/ more rational/ more accepted way to do something. That said, when I did try this the result was "mostly right". I have several "=>" in the partial template which get rendered as => ... fine in a browser, but not so great in a flat-text configuration file. Also, a lot of extraneous tab-spaces and CRLFs. I'm pretty sure that this behavior is a Rails issue, not Hobo. So, I'll set up an ERB mechanism for this and just do it that way. Thanks for your help and suggestions, Bryan! -- 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.
