Add liquid template render

This commit is contained in:
Wen-Tien Chang committed 2009-05-08 01:32:49 +08:00
1 parent 66604d00f4
commit 78e8c32969
4 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ class PagesController < ApplicationController
@page = Page.find_by_name(params[:page_name])
if @page
render :text => @page.content
render :text => Liquid::Template.parse(@page.content).render
else
render :text => '404 not found'
end
+1 -1
View File
@@ -10,7 +10,7 @@
<p>
<%= f.label :content, "Content" %>
<%= f.text_area :content %>
<%= f.text_area :content, :size => '100x30' %>
</p>
<p>
+1 -1
View File
@@ -10,7 +10,7 @@
<p>
<%= f.label :content, "Content" %>
<%= f.text_area :content %>
<%= f.text_area :content, :size => '100x30' %>
</p>
<p>