lib/gumdrop/server.rb in gumdrop-0.6.0 vs lib/gumdrop/server.rb in gumdrop-0.6.1
- old
+ new
@@ -41,10 +41,12 @@
if content.useLayout?
site.report "[#{$$}] *Dynamic: #{file_path} (#{content.ext})"
content_type :css if content.ext == '.css' # Meh?
content_type :js if content.ext == '.js' # Meh?
content_type :xml if content.ext == '.xml' # Meh?
- content.render
+ output= content.render
+ site.content_filters.each {|f| output= f.call(output, self) }
+ output
else
site.report "[#{$$}] *Static: #{file_path}"
send_file File.join( site.src_path, file_path)
end
else
\ No newline at end of file