airblade / flippeur

Simple feature flipping.
MIT License
2 stars 1 forks source link

Block version of view helper renders page content twice #1

Open airblade opened 11 years ago

airblade commented 11 years ago

This happens in production but not development.

- feature? :foo do
  %p blah

Renders everything within main layout twice.

airblade commented 11 years ago

I think this is because I'm using a plain yield. I probably need to use capture(&block).

http://stackoverflow.com/a/7409626/151007

airblade commented 11 years ago

See http://thepugautomatic.com/2013/06/helpers/