From 79583cd71f7b949cbe2db780ad71ee01099ce3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 16 Jan 2012 15:28:29 +0100 Subject: add Node.layout_base_path! --- lib/zorglub/node.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 6af39d1..3f3b2c9 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -26,6 +26,14 @@ module Zorglub @engine = engine end # + def layout_base_path! path + @layout_base_path = path + end + # + def layout_base_path + @layout_base_path ||= Config.layout_base_path + end + # def no_layout! @layout = nil end @@ -204,7 +212,7 @@ module Zorglub # def layout return '' if @options[:layout].nil? - File.join(Config.layout_base_path, @options[:layout])+ext + File.join(self.class.layout_base_path, @options[:layout])+ext end # def static! val -- cgit v1.1-2-g2b99