I think you're a bit mixed up... *you* plugged *us* ;-).
There is something like that right now: filters. They allow you to pass
text through some sort of text filter (as the name implies) and put the
result into your template. The syntax is as so:
!!!
%head
...
%body
.pwnage
Plants are awesome
:erb
Something here that I can't think of right now because for the most
part Haml kicks the crap out of everything.
Any indentation beyond the normal indentation above is preserved and
passed on the the filter. There are various other useful filters that I
urge you to check out in the docs: http://haml.hamptoncatlin.com/docs/haml.
There's one conspicuously missing feature with filters, though: they
can't access any of the data in the view. This is a feature that will be
available in upcoming releases. Because of this, it might be better for
your purposes at the moment to just render an RHTML partial.
If there are things that Haml doesn't get right that it should, though,
we'd like to know about them so we can fix them.
Thanks for your input (and your plug)!
- Nathan
[EMAIL PROTECTED] wrote:
> Hey - thanks for quoting my insane chicken rant on your front page. I
> appreciate the linkiness. Anyway, I just thought I'd throw in a
> suggestion. I find that sometimes I need to do the crazy hardcore
> kind of crap that doesn't play well with HAML (nested loops and the
> like). I realize I should be handling some of this with helpers and
> partials, but sometimes that gets really messy. Anyway, I just want a
> way I can skip back to eRB for a moment and then cut right back to
> haml afterward. Something like this
>
> <pre><code>
> !!!
> %head
> ...
> %body
> .pwnage
> Plants are awesome
>
> <<-ENDERB
>
> Something here that I can't think of right now because for the most
> part Haml kicks the crap out of everything.
>
> ENDERB
> </code></pre>
>
> That would rock.
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---