Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fairytale brings the power and freedom of Sinatra to static site compilation.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 data
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitkeep
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 fairytale.gemspec
README.md

Fairytale

Fairytale is a Ruby static-site compiler designed to work as closely as possible to the process of building a dynamic site. Building with it is designed to closely resemble building with Sinatra:

# mysite.rb
require 'fairytale'

get '/' do
  "Hello world!"
end

Install the gem and run with:

gem install fairytale
ruby -rubygems mysite.rb

Compiled files go into the ./webroot directory.

Credits

Licensed under MIT, created by Michael Mokrysz. A lot of credit has to go to the Sinatra team.

Something went wrong with that request. Please try again.