diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 15:28:29 +0100 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-16 15:28:29 +0100 | 
| commit | 79583cd71f7b949cbe2db780ad71ee01099ce3c6 (patch) | |
| tree | 7957c1e08ddb7013e17d4bd914ea95dfc525e5fb | |
| parent | 25f83221d46744848f4b6f2f6d64ad822abace80 (diff) | |
| download | zorglub-79583cd71f7b949cbe2db780ad71ee01099ce3c6.zip zorglub-79583cd71f7b949cbe2db780ad71ee01099ce3c6.tar.gz  | |
add Node.layout_base_path!
| -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 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  | 
