From fa90c7e5a1a104db2e8e5beec7dc504f7e42e551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 3 Jan 2012 16:31:15 +0100 Subject: config/node: fix engine_ext --- lib/zorglub/config.rb | 2 +- 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 -- cgit v1.1-2-g2b99