Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple CMS extension for sinatra
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme
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")