From 617362f677e0b7ffcc03c181d38b31714c58e69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 16 Jan 2013 22:31:35 +0100 Subject: replace @options[:ext] with @ext --- lib/zorglub/node.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 37f812c..b135b74 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -93,11 +93,11 @@ module Zorglub end # def ext! ext - @options[:ext]= ( (ext.nil? or ext.empty?) ? nil : (ext[0]=='.' ? (ext.length==1 ? nil : ext) : '.'+ext) ) + @ext = ( (ext.nil? or ext.empty?) ? nil : (ext[0]=='.' ? (ext.length==1 ? nil : ext) : '.'+ext) ) end # def ext - @options[:ext] || '' + @ext || '' end # # class level basic node functions @@ -309,7 +309,7 @@ module Zorglub end # def compile_page! - e, @options[:ext] = app.engine_proc_ext @engine, @options[:ext] + e, @ext = app.engine_proc_ext @engine, @ext v, l = view, layout if @debug puts " * "+(e ? 'use engine' : 'no engine ')+" : "+(e ? e.to_s : '') -- cgit v1.1-2-g2b99