0
0
Fork 0

added textile support for the post content

This commit is contained in:
Gibheer 2011-06-26 08:08:52 +02:00
parent f1b602b4c6
commit 09c7eac901
5 changed files with 11 additions and 2 deletions

View File

@ -6,3 +6,6 @@ gem 'sass'
gem 'compass'
gem 'data_mapper'
gem 'dm-postgres-adapter'
# the different markups
gem 'RedCloth'

View File

@ -1,6 +1,7 @@
GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.7)
addressable (2.2.6)
bcrypt-ruby (2.1.4)
chunky_png (1.2.0)
@ -70,6 +71,7 @@ PLATFORMS
ruby
DEPENDENCIES
RedCloth
compass
data_mapper
dm-postgres-adapter

View File

@ -7,6 +7,10 @@ require 'haml'
require 'sass'
require 'compass'
require 'sinatra'
# markups
require 'redcloth'
require 'settings'
# load the models

View File

@ -18,4 +18,4 @@ storm.save
storm.posts.new(:title => 'bar', :content => 'das ist mein post!').save
gib.posts.new(:title => 'foo', :content => 'das ist meiner', :released => true).save
gib.posts.new(:title => 'lala', :content => 'lorem ipsum und so rum').save
storm.posts.new(:title => 'erster!', :content => 'ich bin ganz oben!', :released => true).save
storm.posts.new(:title => 'erster!', :content => 'ich bin *ganz* oben!', :released => true).save

View File

@ -2,4 +2,4 @@
%article
%header
%h1=post.title
%section.content=post.content
%section.content=textile(post.content)