From dbe5078f445fb25da2e055ba7a42e4bd56cd7fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 14 Feb 2026 18:04:10 +0100 Subject: code reorder --- lib/zorglub/node.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 901e1ec..405faac 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -265,18 +265,21 @@ module Zorglub @depth = @parent ? @parent.depth + 1 : 0 raise 'Recursive partial depth limit exceeded' if @depth > 20 + @debug = app.opt :debug + @static = self.class.static + @engine = self.class.engine + @cache_lifetime = self.class.cache_lifetime + @meth = meth @args = args - @partial = options[:partial] || false @request = @parent ? @parent.request : Rack::Request.new(env) @response = @parent ? @parent.response : Rack::Response.new - @cli_vals = {} - @debug = app.opt :debug - @engine = self.class.engine - @layout = (options[:partial] ? nil : self.class.layout) + @view = r(meth) - @static = self.class.static - @cache_lifetime = self.class.cache_lifetime + @partial = options[:partial] || false + @layout = (options[:partial] ? nil : self.class.layout) + + @cli_vals = {} self.class.cli_vals.each { |s, v| cli_val s, *v } (options[:locals] || {}).each do |k, v| -- cgit v1.1-2-g2b99