diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zorglub/config.rb | 2 | ||||
-rw-r--r-- | lib/zorglub/node.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/zorglub/config.rb b/lib/zorglub/config.rb index 12dc508..2b86c0f 100644 --- a/lib/zorglub/config.rb +++ b/lib/zorglub/config.rb @@ -45,7 +45,7 @@ module Zorglub # def engine_ext engine e = @engines[engine] - ( e.nil? ? '' : e[0] ) + ( e.nil? ? '' : '.'+e[0] ) end # def engine_proc engine diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index a83454f..e8b0b13 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -129,12 +129,12 @@ module Zorglub # def layout layout=nil @action[:layout] = layout unless layout.nil? - File.join(Config.layout_base_path, @action[:layout])+'.'+ Config.engine_ext(@action[:engine]) + File.join(Config.layout_base_path, @action[:layout])+ Config.engine_ext(@action[:engine]) end # def view path=nil @action[:view] = path unless path.nil? - File.join(Config.view_base_path, @action[:view])+'.'+Config.engine_ext(@action[:engine]) + File.join(Config.view_base_path, @action[:view])+Config.engine_ext(@action[:engine]) end # def args |