app/controllers/hicube/public/pages_controller.rb in hicube-0.0.10 vs app/controllers/hicube/public/pages_controller.rb in hicube-0.0.11
- old
+ new
@@ -47,10 +47,10 @@
f = File.new(filename, "w+")
f.write ::Liquid::Template.parse(@page.body).render
f.close
- @page_content = ::Slim::Template.new(filename).render (Object.new,
+ @page_content = ::Slim::Template.new(filename).render(Object.new,
links: Hicube::Page.parents.map(&:slug),
header_links: Hicube::Page.parents.headers.map(&:slug),
footer_links: Hicube::Page.parents.footers.map(&:slug),
documents: Hicube::Document.all, id: @page.slug
)