lib/trifle/docs/app.rb in trifle-docs-0.2.0 vs lib/trifle/docs/app.rb in trifle-docs-0.3.0

- old
+ new

@@ -11,9 +11,11 @@ end get '/*' do url = params['splat'].first.chomp('/') meta = Trifle::Docs.meta(url: url) + halt(404, 'Not Found') if meta.nil? + if meta['type'] == 'file' send_file meta['path'] else erb (meta['template'] || 'page').to_sym, {}, { sitemap: Trifle::Docs.sitemap,