Hello,
Can someone please tell what is wrong with this syntax. For some
reason it does not work..
- content_for?(:sidebar) do
.sidebar= yield(:sidebar)
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to haml@googlegr
On Thu, Feb 24, 2011 at 8:20 PM, slavix wrote:
> Hello,
> Can someone please tell what is wrong with this syntax. For some
> reason it does not work..
>
> - content_for?(:sidebar) do
> .sidebar= yield(:sidebar)
>
>
Where is the rest of the code?
If that .sidebar is inside your content_for block
inside a view i have:
..
- content_for :sidebar do
.signup
%h2= 'Placeholder'
On Thu, Feb 24, 2011 at 8:27 PM, Phil Crissman wrote:
>
>
>
> On Thu, Feb 24, 2011 at 8:20 PM, slavix wrote:
>>
>> Hello,
>> Can someone please tell what is wrong with this syntax. For some
>> reason it does not
Phil
On Thu, Feb 24, 2011 at 11:14 PM, Slava Mikerin wrote:
> inside a view i have:
> ..
> - content_for :sidebar do
> .signup
>%h2= 'Placeholder'
>
>
That looks fine. You don't really need the '=' after the h2 if you're only
putting plain text there, but it will still work.
What's not wor