diff options
-rw-r--r-- | lib/zorglub/node.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 3f3b2c9..330a431 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -42,6 +42,14 @@ module Zorglub @layout = layout end # + def view_base_path! path + @view_base_path = path + end + # + def view_base_path + @view_base_path ||= Config.view_base_path + end + # def static! val @static = val if (val==true or val==false) @static ||= false @@ -231,7 +239,7 @@ module Zorglub # def view return '' if @options[:view].nil? - File.join(Config.view_base_path, @options[:view])+ext + File.join(self.class.view_base_path, @options[:view])+ext end # def ext! ext |