jlong / serve

Serve is a small Rack-based web server and rapid prototyping framework for Web applications (specifically Rails apps). Serve is meant to be a lightweight version of the Views part of the Rails MVC. This makes Serve an ideal framework for prototyping Rails applications or creating simple websites. Serve has full support for Rails-style partials and layouts.
http://get-serve.com
Other
836 stars 90 forks source link

Using maruku #109

Closed agarzola closed 10 years ago

agarzola commented 10 years ago

Hello! I’m finding Markdown a bit too limited for my needs and would like to experiment with something a little more comprehensive like maruku to add classes and IDs without having to write a bunch of HMTL. In case it matters, I’m using slim as a template language.

Is it possible to use maruku on serve?

Thanks!

jlong commented 10 years ago

It should be possible. What you need to do is configure Tilt to use a different processor for markdown. This probably means putting something like this in your config.ru:

Tilt.prefer Tilt::MarukuTemplate

You may also need to require Tilt so that you have access to it in config.ru.

Here's a doc about doing this for Nesta CMS, but it should apply here:

http://nestacms.com/docs/creating-content/changing-the-markdown-processor

agarzola commented 10 years ago

Perfect, @jlong. Thank you!