diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-14 18:04:10 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-02-14 18:04:10 +0100 |
| commit | dbe5078f445fb25da2e055ba7a42e4bd56cd7fb3 (patch) | |
| tree | 610de9aa9f04b40346d527f2c2b244c3eb648f98 | |
| parent | de649a45977acf03f9197f6ce9150437bfa53c1c (diff) | |
| download | zorglub-dbe5078f445fb25da2e055ba7a42e4bd56cd7fb3.zip zorglub-dbe5078f445fb25da2e055ba7a42e4bd56cd7fb3.tar.gz | |
| -rw-r--r-- | lib/zorglub/node.rb | 17 |
1 files 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| |
