$ gem install copy and then generate a new site
$ copy -n mynewsite
Copy automatically maps URLs to files in your
Copy lets you define blocks of editable text in your views.
<% copy :contact do %> 1 _Infinite_ Loop Cupertino, CA 95014 408.996.1010 <% end %>
Single line blocks will be rendered in a span (by default). Perfect for headlines.
<h1><% copy :title do %>Like a boss!<% end %></h1>
Partials can be rendered from any view with the
partial helper. Their filenames are always prefixed with an underscore.
<%= partial 'nav' %>renders
<%= partial 'shared/details' %>renders
Copy supports multiple backends for storage: redis, mongodb, mysql, postgres, and sqlite.
Choosing and configuring your storage option is done in one line in your
config.ru file by providing a connection URI.
set :storage, 'mongodb://user:pass@host:port/database'
set :storage, 'postgres://user:pass@host/database'
/_copy and drag the "Edit Copy" link to your bookmarks bar. Return to your site, click the bookmark (you'll be prompted for your username and password) and then click on the highlighted text to edit it. That's it!