summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2026-02-13 15:20:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2026-02-13 15:20:06 +0100
commite1bcb13ef41575021951f0eccc502dd1705dc3d0 (patch)
tree76e611bc99b5c0f13ddc8a7164930e151067234f /lib
parent922c5e4999884cf40f85ea15684405793e813aa7 (diff)
downloadzorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.zip
zorglub-e1bcb13ef41575021951f0eccc502dd1705dc3d0.tar.gz
Node.partial : env & no_hooks -> kw args
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