diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2012-03-14 13:53:10 -0700 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2012-03-14 13:53:10 -0700 |
| commit | 43e3df2e9be5719eb032819ee556a58e689fb8bb (patch) | |
| tree | 508238215eeca7bc1a07faadeffe89e36f4d1118 /app.py | |
| parent | 3bfc07c4d83aa49893013ce750743cce6581313c (diff) | |
static js file serving
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,11 @@ CLOUDANT_AUTH = ('pinkyswear', 'abc123') def index(name='home'): return template('index.html', sig=None) +@route('/js/:filename') +def index(filename=None): + root = os.path.join(os.path.dirname(__file__), 'js') + return static_file(filename, root=root, mimetype='text/javascript') + @route('/s/:id') def sig(id='home'): url = CLOUDANT_BASE + id |
