You have to have "do" if you're using Ruby blocks, even in Haml.

On Fri, Jan 7, 2011 at 7:31 AM, Ray <[email protected]> wrote:

> I was refactoring some code into a helper, partially to be able to
> decide if I wrap a haml block into some tag or not.
> But I can't get haml_tag to work at all
>
> Here is a simplified example:
>
> https://gist.github.com/769587
>
> Whatever I do, I get
>
> ActionView::Template::Error (some_path/haml_tag.html.haml:4: syntax
> error, unexpected keyword_ensure, expecting $end):
>    1: - wrap(true)
>    2:   %p
>    3:     abc
>
> Maybe someone can help with that, I seriously like to refactor some
> views and get some more behaviour options through helpers.
>
> Ray
> System: OS X
> Rails 3.0.3
> Ruby 1.9.2
> Haml 3.0.25
> haml-rails 0.3.4
>
> --
> 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] <haml%[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.

Reply via email to