Using ERB in a Hobo app isn't "wrong": the agility tutorial uses ERB
to render mail for example.
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'`. If that doesn't
work, please raise a bug on the lighthouse. Hobo generally uses
"parts" rather than partials, so I wouldn't be surprised if there's a
bug in there somewhere.
If that doesn't work, try `render :file => 'filename'`.
Another option is `render :text => Dryml.render(File.open('filename'),
{}, 'filename')`. This requires the dryml-split branch (which will be
rolled into Hobo 1.1).
Bryan
On Feb 16, 4:25 pm, MichelV69 <[email protected]> wrote:
> Is there a particularly preferred/ best practice way within hobo to
> generate output to non-browser targets, such as text files? I've used
> ERB in the past to do this sort of thing on other projects. A bit of
> hunting hasn't enlightened me about how I'd use Hobo to render
> partials and the like to create text files.
>
> Any links or examples would be appreciated!
>
> Thanks in advance,
> --Michel
--
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.