The best way to do this is really to just send the text to the filter
program (in this case RedCloth) directly. Haml filters are really there to
be used with in-template text.

On Sat, Sep 26, 2009 at 11:55 PM, HiHeelHottie <[email protected]>wrote:

>
>
> Hello,
>
> Is there  a way to generate text for a filter using ruby in a haml
> file?  The following snippets do not generate one body of text that
> gets fed into textile.
>
> :textile
> - (1..2).each do |i|
>  * #{i}
>
> - (1..2).each do |i|
>  :textile
>    * #{i}
>
> Or, is the idea that you would need a ruby helper function that
> generates the textile text to be fed into the textile filter:
>
> :textile
>  #{generate_textile_text}
>
> Thanks,
> hhh
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to