summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb10
1 files changed, 9 insertions, 1 deletions
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