Shopify/batman — Issue #255: data-yield does not clear: when new data-contentfor is rendered
Author: hookercookerman
Created: 2011-11-28 11:00:13+00:00
State: open

I am not sure if this is by design or not;

I have a data-yield that is given then in a subsequent call the old content remains in the DOM;

so just to explain:

main view:

has data-yield "egg"

controller home action show:

renders a view with data-contentfor "egg"

beans

then controller posts action show:

renders a view with data-contentfor "egg"

sausages

What is shown and remains

beans

sausages