This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Markdown/textile rendering and wikifying

  • Loading branch information...
myfreeweb
myfreeweb committed Feb 20, 2011
1 parent eab2935 commit fd5365976145c25f38ba14a5bd494740652676e4
Showing with 9 additions and 3 deletions.
  1. +3 −1 Gemfile
  2. +4 −0 Gemfile.lock
  3. +2 −2 views/pages.haml
View
@@ -4,10 +4,12 @@ gem 'haml'
gem 'dropbox'
gem 'sequel'
gem 'rack-flash'
+gem 'rdiscount'
+gem 'RedCloth'
group :development do
gem 'sqlite3-ruby'
gem 'ruby-debug'
end
group :production do
gem 'pg'
-end
+end
View
@@ -1,6 +1,7 @@
GEM
remote: http://rubygems.org/
specs:
+ RedCloth (4.2.7)
columnize (0.3.2)
dropbox (1.2.3)
json (>= 1.2.0)
@@ -19,6 +20,7 @@ GEM
rack (1.2.1)
rack-flash (0.1.1)
rack
+ rdiscount (1.6.8)
ruby-debug (0.10.4)
columnize (>= 0.1)
ruby-debug-base (~> 0.10.4.0)
@@ -37,10 +39,12 @@ PLATFORMS
ruby
DEPENDENCIES
+ RedCloth
dropbox
haml
pg
rack-flash
+ rdiscount
ruby-debug
sequel
sinatra
View
@@ -14,7 +14,7 @@
%header
%h1= @cur_page[:name]
%a{:href => "/pages/#{@cur_page[:name]}/delete"} delete
- = @cur_page['text'] or "This page doesn't exist yet."
+ = wikify(@cur_page)
%form{:method => "post", :action => ""}
- %textarea{:name => "text"}= @cur_page['text']
+ %textarea{:name => "text"}= @cur_page[:text]
%button{:type => "submit"} Save

0 comments on commit fd53659

Please sign in to comment.