If thats the case, can we at least make it easier to call helpers with lots of
arguments?
= some_long_helper_name arg1,
arg2,
arg3
Comma + newlines are allowed when specifying attribute syntax. We should allow
it when calling helpers too.
In a large haml project, I often have helpers just to provide arguments to
other helpers. Ends up being pretty terrible sometimes
On Nov 24, 2009, at 5:44 PM, Nathan Weizenbaum wrote:
> The Haml multiline syntax is intentionally awkward. It's meant to encourage
> people away from putting large blocks of Ruby in their views, and towards
> moving their code into helpers. This almost always results in nicer code and
> easier-to-read views.
>
> On Tue, Nov 24, 2009 at 10:15 AM, svoop <[email protected]> wrote:
> Hi
>
> How about allowing an alternative multiline syntax:
>
> http://pastie.org/713107
>
> Maybe this is a no go for the parser, though.
>
> Cheers, -sven
>
> --
>
> 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.
>
>
>
>
> --
>
> 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.
--
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.