summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-03 23:34:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-03 23:34:12 +0100
commita9da952f445958a4cc16a25abb50b930ac8da302 (patch)
tree2aade0db9cc8b5f9beb08d422d19e206ef25ae71
parented96103448dacfb2e3fb561e5a1c00275c2da741 (diff)
downloadzorglub-a9da952f445958a4cc16a25abb50b930ac8da302.zip
zorglub-a9da952f445958a4cc16a25abb50b930ac8da302.tar.gz
Node#partial set layout to nil, maybe use action[:mode]=:partial ??
-rw-r--r--lib/zorglub/node.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 5e66d1c..f2aaa72 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -48,7 +48,8 @@ module Zorglub
end
#
def partial meth, *args
- node = self.new nil, {:engine=>engine,:layout=>'',:view=>r(meth),:method=>meth.to_s,:args=>args}
+ # TODO maybe use :mode=>:partial ???
+ node = self.new nil, {:engine=>engine,:layout=>nil,:view=>r(meth),:method=>meth.to_s,:args=>args}
return error_404 node if not node.respond_to? meth
node.feed!
node.content