mrkipling/maraschino — pull request #156 by N3MIS15 (2012-06-17 11:48:07+00:00)
Title: add --webroot arg

make maraschino available from hostname:port/whatever.
urls need to have a webroot var before them.

python:
import maraschino
image = maraschino.WEBROOT + '/static/images/whatever.png'

jquery:
$.get(WEBROOT + '/xhr/whatever');

.less:
@import "webroot.less";
background: url('@{webroot}/static/images/whatever.png');

templates:
img src="{{ url_for('static', filename='images/whatever.png') }}"

I think i caught all existing hard coded links, grep cant find anything...

Thoughts?