Commit 8ac84c83 authored by Robin Schoonover's avatar Robin Schoonover 🍪
Browse files

Fix source code rendering in README

parent 8fd0e9b4
......@@ -15,7 +15,8 @@ such as for webapps.
Quick Example
staticfiles = StaticFiles(root="path/to/static", pathvar='path')
staticfiles.register('staticky.rules.sass:Sass', input='{name}.scss', output='{name}.css')
......@@ -25,11 +26,13 @@ Registration:
staticfiles.register_post('', name='{name}.js')
staticfiles.register_post('', name='{name}.css')
As a View:
As a View::
from webob import Request
request = webob.Request.blank("/file.css")
response = staticfiles(request)
Pre-Compile (for deployment):
Pre-Compile (for deployment)::
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment