0.0
No commit activity in last 3 years
No release in over 3 years
Tool for staticly caching Ruby web applications (based on Rack::Staticifier)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Staticify¶ ↑

Staticify is a tool for creating static sites in Ruby.

There are lots of tools out there already for creating static sites, eg:

Jekyll

jekyllrb.com

StaticMatic

staticmatic.rubyforge.org

webgen

webgen.rubyforge.org

Webby

webby.rubyforge.org

The problem with these tools, in my opinion, is that they make you code your sites in a certain way.

What if you want to code your blog in Rails or Sinatra or something?

Staticify is intended to solve this problem for you. If you want to code your static site in any Rack-based web framework, go right ahead!

You can use Staticify to statically cache responses to your app.

Installation¶ ↑

$ gem sources -a http://gems.github.com
$ sudo gem install remi-staticify

Usage¶ ↑

Simple script for staticifying your Rack applications

staticify == %{ For staticifying your Rack applications }

  Usage:
    echo 'paths' | staticify      # print this usage information
    echo 'paths' | staticify .    # staticify Rack app in current directory

  Note:
    staticify expects to get the paths to hit via STDIN

  Options:
    -d, --dir some/directory   # directory to save files to
    -a, --app "MyApp.new"      # ruby to eval to get Rack app
    -r, --require file[.rb]    # ruby file(s) to require

Notes¶ ↑

Checks for config.ru / Rails by default, otherwise you can:

$ staticify -r myapp.rb --app 'lambda {|env| [200, {}, "hi!"] }' info
$ staticify -r myapp.rb,another-file.rb --app 'Sinatra::Application' get '/'
$ staticify -r myapp --app 'MyApp.new' '/'