Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hackety_sling

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hackety_sling

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc