summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-16 22:31:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-16 22:31:35 +0100
commit617362f677e0b7ffcc03c181d38b31714c58e69c (patch)
treea2ef8622ec008f106e24990fcaa32df016cecb94 /lib
parentb1a39eda9fb6567cbad72d3d1cbec1d97287759b (diff)
downloadzorglub-617362f677e0b7ffcc03c181d38b31714c58e69c.zip
zorglub-617362f677e0b7ffcc03c181d38b31714c58e69c.tar.gz
replace @options[:ext] with @ext
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb6
1 files 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 : '')