lib/locomotive/builder/server/renderer.rb in locomotivecms_builder-1.0.0.alpha6 vs lib/locomotive/builder/server/renderer.rb in locomotivecms_builder-1.0.0.alpha7
- old
+ new
@@ -8,13 +8,13 @@
if self.page
if self.page.redirect?
self.redirect_to(self.page.redirect_url, self.page.redirect_type)
else
- self.log "Rendered liquid template"
-
type = self.page.response_type || 'text/html'
html = self.render
+
+ self.log " Rendered liquid page template"
[200, { 'Content-Type' => type }, [html]]
end
else
# no page at all, even not the 404 page
\ No newline at end of file