A simple blog engine based on Sinatra and document_mapper
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/sinatra
test
views
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
hackety_sling.gemspec

README.md

Hackety Sling

Build Status

Hackety Sling is a very simple blog software based on Sinatra and Document Mapper. It will add the following pages to your Sinatra application:

  • An index page (/), showing 2 posts by default
  • Posts by year/month/day, e.g. /2010/08/10/, /2010/08/ or /2010/
  • Showing a single post, e.g.: /2010/11/13/my-post/
  • Showing posts by tag, e.g.: /tags/ruby/
  • Showing posts by author, e.g.: /author/ralph/
  • An archive page: /archive/
  • An atom feed: /atom.xml

Getting Hackety Sling to play nice with your existing Sinatra Application is easy. Just include the module and add some configuration settings, like in the example below:

class MySuperBlog < Sinatra::Base
  register Sinatra::HacketySling

  set :hackety_sling_title, 'My super blog | A blog about stuff'
  set :hackety_sling_author, 'Carlos Testuser'


  # Optional
  set :hackety_sling_posts_on_index, 2

  get '/other-sinatra-page/' do
    erubis :other_sinatra_page
  end
end

Author

Written by Ralph von der Heyden. Don't hesitate to contact me if you have any further questions.

Follow me on Twitter