Automatically render changed partials in webby

Posted by Tomas Sedovic on Stack Overflow See other posts from Stack Overflow or by Tomas Sedovic
Published on 2010-03-22T09:59:47Z Indexed on 2010/03/22 10:01 UTC
Read the original article Hit count: 387

Filed under:
|

I have a webby page and I'm have a layout that all my pages are rendered to. That layout uses a partial for navigation (in HAML):

= render(:partial => "navigation", :locals => {:some => "stuff"} )

The problem is that when I change the _navigation partial, neither webby nor webby autobuild recognize the change and they don't re-render the pages.

I've solved this by setting the dirty: true flag in the layout, but that makes all the pages re-render every time -- even when nothing changed.

I know that this is not that big a deal, but still: is there a way so that when you change partial, webby recognizes this and renders only the affected pages (as it does with everything else)?

© Stack Overflow or respective owner

Related posts about webby

Related posts about ruby