A set of Rake tasks for generating static pages with Rails.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
LICENSE.txt
README.md
rails-static.gemspec

README.md

rails-static

A set of Rake tasks for generating static pages with Rails.

Usage

Add to your Gemfile:

gem 'rails-static'

Add to an initializer:

if defined?(RailsStatic)
  RailsStatic.configure do |config|

    config.index = 'index'
    config.routes = ['/']
    config.extension = '.html'

  end
end

And run:

rake static

Config options

index

Name of generated file for urls ending in /. Default is index

routes

Array of app urls to request. Request the root route by default.

extension

Extension of generated files. Default is no extension.

License

rails-static is released under the MIT License.