Changeset [d48a742785fe6cf67e96cf96917684af305df484] by James Adam
Revision d48a742785fe6cf67e96cf96917684af305df484,
committed by James Adam
· April 16th, 2011 @ 10:27 PM
Allow specification of a per-app default renderer.
The intention here is that you might write a 'Blog' renderer,
and mount an instance of Vanilla::App under
/blog, and have it treat snips differently. One
important thing to note is that every snip without a
render_as attribute will use this renderer, so
low-level snips like layout will probably need their
renderers explicitly set to Base.
https://github.com/lazyatom/vanilla-rb/commit/d48a742785fe6cf67e96c...
2 changed files
-
M
lib/vanilla/app.rb -
M
test/vanilla_presenting_test.rb