public
Description: Rails Plugin - a RailsEngines-based CMS extension for any Rails project
Homepage: http://6brand.com
Clone URL: git://github.com/JackDanger/simple_pages.git
Search Repo:
page templates are now run through ERB.  Awesome

git-svn-id: http://svn.6brand.com/projects/plugins/simple_pages@324 
7491b73d-821b-0410-9297-ad1f6b5b4194
studioda (author)
Thu May 03 16:33:45 -0700 2007
commit  7326fd869cc618314d4d1d753d886bb648e1b571
tree    6ce209dbc6abf384b8b38f54ddb284af7cab95d1
parent  7e916de4e8ef8331789aec328110c1846abab812
...
 
 
 
 
 
...
1
2
3
4
5
0
@@ -1 +1,6 @@
0
+2007-05-03
0
+* page contents are now processed by ERB before being displayed. Hey now - embedded stuff - that's nifty
0
+
0
+2007-04-29
0
+* added confirmation for page deletion
...
1
2
3
 
4
...
1
2
 
3
4
0
@@ -1,5 +1,5 @@
0
 <%= link_to image_tag('page_edit.png', :plugin => :simple_pages)+' Edit this Page', simple_edit_page_path(@simple_page) if can_manage_pages? %>
0
 <div id="simple_page_<%= @simple_page.to_param %>" class="simple_page">
0
- <%= @simple_page.content %>
0
+ <%= ERB.new(@simple_page.content).result %>
0
 </div>

Comments

    No one has commented yet.