topfunky / merb_static

A Merb plugin that creates a static version of a website, for deployment to any webserver.

This URL has Read+Write access

Geoffrey Grosenbach (author)
Wed Nov 19 12:11:27 -0800 2008
commit  e91962e605c3adeb81b09944877ca67e35bbea0b
tree    94ffb8de8919cb4e96da0571bb77adf3dab1ecc0
parent  8e8f00545fab03cbbae800d0afd03e3e2857c4a2
name age message
file .gitignore Loading commit data...
file LICENSE
file README
file Rakefile
directory lib/
directory spec/
README
merb_static
===========

A plugin for the Merb framework that generates static HTML (and other) files from a dynamic Merb application.

Provides functionality similar to static-site building tools like Webby, but you can use all the plugins, helpers, and 
databases available to Merb.

For example, I use Mac OS X to generate screenshots for a news-reading application, but deploy to a Linux box hosted at 
RailsMachine. I can use merb_static to generate the HTML locally and deploy the static files and images to the server.

  http://peepcode.com/system/screens/

Usage
=====

In config/dependencies.rb:

  dependency "merb_static"
  
Add other configuration information (TODO).

Generate the site:

  rake merb_static:build
  
Start over:

  rake merb_static:clean

TODO
====

* Documentation
* Configuration options
* Spidering of all urls on a site
* Recommendations for writing sites that will be archived
* Synchronization task
* Tips: Use Merb::Config[:path_prefix] to generate URLs at a path