Yield in Partials with Better Partials

I just made a partial like

bla bla
something else

and to my surprise

render :partial=>'yield_partial' do
  something for the inside

did not work!

So i got myself better partials


script/plugin install http://betterpartials.googlecode.com/svn/trunk/better_partials/


- partial "yielding_partial" do
  %h2 Damn old partials

and it works 😉

PS: that not erb but haml code

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s