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

Support Apache-style SSI #119

Open thany opened 9 years ago

thany commented 9 years ago

Would be a nice idea to support Apache-style serverside includes? That way, it's super easy to migrate projects that use SSI, from forcing my fellow developers to install and config Apache (or nginx, which uses an almost identical syntax), to having them type serve :)

Example for good measure:

<!--#include virtual="inc/bottom.html"-->

This would include ./inc/bottom.html relative to the file being processed.

Actually I believe there is an actively-being-developed module for NPM, and a gem (no idea about the status) that handle resolving these SSI.