summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 83947fd..1c77438 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -236,11 +236,11 @@ module Zorglub
node.realize!
end
- def partial(env, meth, *args)
+ def partial(meth, *args, env: {}, no_hooks: false)
node = new(env, meth.to_s, args, partial: true)
return error404 node, meth unless node.respond_to? meth
- node.feed!(no_hooks: env[:no_hooks])
+ node.feed!(no_hooks: no_hooks)
node.content
end