diff options
-rw-r--r-- | lib/zorglub/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 63366e8..e499a0c 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -118,9 +118,9 @@ module Zorglub Node.call_before_hooks self state :meth @content = self.send @action[:method], *@action[:args] - e, v, l = Config.engine_proc(@action[:engine]), view, layout + v, l, e = view, layout, Config.engine_proc(@action[:engine]) # TODO compile and cache - state :view + state (@action[:layout].nil? ? :partial : :view) @content = e.call v, self if e and File.exists? v state :layout @content = e.call l, self if e and File.exists? l |