This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit c46bd20761b477a075100e1097d9ae6ef2f87bad
tree ce11264266d2f75cd57ecde8bbd97b8dbe37026a
parent 3e5b560da6fb590b21a7fc81fca66b5dcc4c5ea8
tree ce11264266d2f75cd57ecde8bbd97b8dbe37026a
parent 3e5b560da6fb590b21a7fc81fca66b5dcc4c5ea8
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
merb_static.gemspec | ||
| |
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 to your Merb configuration. Merb::Plugins.config[:merb_static] = { :urls => ["/"], :domain => "http://peepcode.com", :remote => { :domain => "peepcode.com", :username => "deploy", :passphrase => "my ssh key passphrase", :path => "/full/path/to/deploy/this/app/to" } } Generate the static site: rake merb_static:build Start over: rake merb_static:clean Build and deploy to a remote server: rake merb_static:sync You may want to run your own app's tasks first by creating a custom Rake task: task :my_sync => [:my_build_task, "merb_static:sync"] 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








