From 18777bb83937837f673f3876c96b7fb8ce59835e Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Wed, 4 Jan 2012 01:32:51 +0100 Subject: add Node#no_layout and use it --- lib/zorglub/node.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index f2aaa72..669f2c4 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -136,6 +136,10 @@ module Zorglub File.join(Config.layout_base_path, @action[:layout])+ Config.engine_ext(@action[:engine]) end # + def no_layout + @action[:layout] = nil + end + # def view view=nil @action[:view] = view unless view.nil? or view.empty? return '' if @action[:view].nil? -- cgit v1.2.3