source 'https://rubygems.org'
-gem 'jekyll'
-gem 'RedCloth'
+gem 'zenweb'
+gem 'zenweb-textile'
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
- classifier (1.3.3)
- fast-stemmer (>= 1.0.0)
- colorator (0.1)
- commander (4.1.5)
- highline (~> 1.6.11)
- fast-stemmer (1.0.2)
- ffi (1.9.3)
- highline (1.6.20)
- jekyll (1.3.0)
- classifier (~> 1.3)
- colorator (~> 0.1)
- commander (~> 4.1.3)
- liquid (~> 2.5.2)
- listen (~> 1.3)
- maruku (~> 0.6.0)
- pygments.rb (~> 0.5.0)
- redcarpet (~> 2.3.0)
- safe_yaml (~> 0.9.7)
- liquid (2.5.4)
- listen (1.3.1)
- rb-fsevent (>= 0.9.3)
- rb-inotify (>= 0.9)
- rb-kqueue (>= 0.2)
- maruku (0.6.1)
- syntax (>= 1.0.0)
- posix-spawn (0.3.6)
- pygments.rb (0.5.4)
- posix-spawn (~> 0.3.6)
- yajl-ruby (~> 1.1.0)
- rb-fsevent (0.9.3)
- rb-inotify (0.9.2)
- ffi (>= 0.5.0)
- rb-kqueue (0.2.0)
- ffi (>= 0.5.0)
- redcarpet (2.3.0)
- safe_yaml (0.9.7)
- syntax (1.0.0)
- yajl-ruby (1.1.0)
+ coderay (1.1.0)
+ kramdown (0.14.2)
+ less (1.2.21)
+ mutter (>= 0.4.2)
+ treetop (>= 1.4.2)
+ mutter (0.5.3)
+ polyglot (0.3.3)
+ treetop (1.4.15)
+ polyglot
+ polyglot (>= 0.3.1)
+ zenweb (3.0.0.b3)
+ coderay (~> 1.0)
+ kramdown (~> 0.13)
+ less (~> 1.2)
+ zenweb-textile (0.0.1)
+ RedCloth (~> 4.2.9)
+ zenweb (= 3.0.0.b3)
PLATFORMS
ruby
DEPENDENCIES
- RedCloth
- jekyll
+ zenweb
+ zenweb-textile
+++ /dev/null
-Use this README file to introduce your application and point to useful places in the API for learning more.
-Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
--- /dev/null
+#!/usr/bin/env rake
+
+require "rubygems"
+require "zenweb/tasks"
+load "zenweb-textile.rb"
+
+exclude: ["Rakefile", "tmp"]
baseurl: /doc
arvados_api_host: qr1hi.arvadosapi.com
navbar:
--- /dev/null
+require 'zenweb'
+
+module ZenwebTextile
+ VERSION = '0.0.1'
+end
+
+module Zenweb
+ class Page
+
+ ##
+ # Render a page's textile and return the resulting html
+ def render_textile page, content
+ textile body
+ end
+
+ ##
+ # Render textile in +content+
+ def textile content
+ require 'RedCloth'
+ @textile = RedCloth.new(content).to_html
+ end
+ end
+end