Skip to content

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

License

Notifications You must be signed in to change notification settings

mobvox/rails-static

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published