summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 980398d..6af39d1 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -226,7 +226,7 @@ module Zorglub
File.join(Config.view_base_path, @options[:view])+ext
end
#
- def ext ext=nil
+ def ext! ext
if ext.nil? or ext.empty?
@options[:ext]||''
else
@@ -234,6 +234,10 @@ module Zorglub
end
end
#
+ def ext
+ @options[:ext]||''
+ end
+ #
def inherited_var sym, *args
d = self.class.inherited_vars[sym].clone || []
unless args.empty?