lib/nitro/caching/output.rb in nitro-0.15.0 vs lib/nitro/caching/output.rb in nitro-0.16.0
- old
+ new
@@ -1,12 +1,12 @@
# * George Moschovitis <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
-# $Id: output.rb 322 2005-03-21 18:15:52Z gmosx $
+# $Id: output.rb 9 2005-04-13 00:08:20Z nasis $
require 'fileutils'
-module N
+module Nitro
# Adds support for caching.
module Caching
@@ -44,10 +44,10 @@
end
private
def output_cache_path(path)
- filename = ((path.empty? || path == '/') ? '/index' : path)
+ filename = ((path.empty? || path == '/') ? '/index' : path)
filename << '.html' unless (name.split('/').last || name).include? '.'
return output_cache_root + filename
end
end