Skip to content
This repository was archived by the owner on May 29, 2020. It is now read-only.

ottbot/sinatra-editable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sinatra-editable
================

A simple extension to edit mostly static partials. The extension adds a get and put to '/editable/*', and provides an editable() helper.

For example:
If you put to '/editable/about-us/bio' textile text in params[:content], the extension will
write two files in in APP_ROOT/editable/about-us

The extension will parse the textile and save in 'bio.html', saving the original text in 'bio.textile'.

When you want to display the html, use the helper: editable("about-us/bio")

















About

A simple CMS-like extension for sinatra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages