lib/siteleaf/server.rb in siteleaf-0.8.3 vs lib/siteleaf/server.rb in siteleaf-0.9.0

- old
+ new

@@ -40,10 +40,10 @@ if !File.directory?(path) and File.exist?(path) Rack::File.new(Dir.pwd).call(env) else template_data = nil - is_asset = /(^assets|\.)/.match(path) + is_asset = /^(?!(sitemap|feed)\.xml)(assets|.*\.)/.match(path) if is_asset if asset = site.resolve(url) and asset_url = asset['file']['url'] require 'open-uri' output = open(asset_url) \ No newline at end of file