Project

doco

0.0
No commit activity in last 3 years
No release in over 3 years
Renders textile documents within mustache templates
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Doco

Is a simple piece of rack middleware1 which allows me to write stuff in textile, give it structure with mustache, and deploy it easily. It was designed for documentation, hence the name.

Usage

  1. Install the gem:
    gem install doco
  2. Create your file structure, here’s an example:
    dir/
    	|-- config.ru
    	|-- layouts
    	|   `-- default.mustache
    	`-- pages
        	`-- index.textile
    
  3. Add Doco to your config.ru:
    require 'doco'
    use Rack::Doco
    
  4. Serve it up using your favourite rack server!

Middleware Options

Doco’s middleware can have a few options passed to it, these are:

:url  => '/'      # path at which to mount Doco
:root => Dir.pwd  # path in which to locate the `layouts` and `pages` directories.

Patches & Feedback

Patches are welcome, as is feedback, feel free to send either as a message on github


1 Maybe it’s a rack application, not middleware? I’m still learning this stuff! Hopefully it’s actually middleware now.