added textile support for the post content
This commit is contained in:
parent
f1b602b4c6
commit
09c7eac901
3
Gemfile
3
Gemfile
@ -6,3 +6,6 @@ gem 'sass'
|
|||||||
gem 'compass'
|
gem 'compass'
|
||||||
gem 'data_mapper'
|
gem 'data_mapper'
|
||||||
gem 'dm-postgres-adapter'
|
gem 'dm-postgres-adapter'
|
||||||
|
|
||||||
|
# the different markups
|
||||||
|
gem 'RedCloth'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
RedCloth (4.2.7)
|
||||||
addressable (2.2.6)
|
addressable (2.2.6)
|
||||||
bcrypt-ruby (2.1.4)
|
bcrypt-ruby (2.1.4)
|
||||||
chunky_png (1.2.0)
|
chunky_png (1.2.0)
|
||||||
@ -70,6 +71,7 @@ PLATFORMS
|
|||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
RedCloth
|
||||||
compass
|
compass
|
||||||
data_mapper
|
data_mapper
|
||||||
dm-postgres-adapter
|
dm-postgres-adapter
|
||||||
|
4
libs.rb
4
libs.rb
@ -7,6 +7,10 @@ require 'haml'
|
|||||||
require 'sass'
|
require 'sass'
|
||||||
require 'compass'
|
require 'compass'
|
||||||
require 'sinatra'
|
require 'sinatra'
|
||||||
|
|
||||||
|
# markups
|
||||||
|
require 'redcloth'
|
||||||
|
|
||||||
require 'settings'
|
require 'settings'
|
||||||
|
|
||||||
# load the models
|
# load the models
|
||||||
|
2
seeds.rb
2
seeds.rb
@ -18,4 +18,4 @@ storm.save
|
|||||||
storm.posts.new(:title => 'bar', :content => 'das ist mein post!').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 => 'foo', :content => 'das ist meiner', :released => true).save
|
||||||
gib.posts.new(:title => 'lala', :content => 'lorem ipsum und so rum').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
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
%article
|
%article
|
||||||
%header
|
%header
|
||||||
%h1=post.title
|
%h1=post.title
|
||||||
%section.content=post.content
|
%section.content=textile(post.content)
|
||||||
|
Loading…
Reference in New Issue
Block a user