Skip to content

Commit

Permalink
start to getting rid of JS
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Sep 1, 2012
1 parent 9cc35a0 commit 732a9e5
Show file tree
Hide file tree
Showing 81 changed files with 32 additions and 9,178 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -10,6 +10,7 @@ HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\
#
# BUILD DOCS
#
.PHONY: build

build:
@echo "\n${HR}"
Expand All @@ -21,7 +22,6 @@ build:
@recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
@recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
@echo "Compiling LESS with Recess... ${CHECK} Done"
@node static/build
@cp img/* static/img/
@cp js/*.js static/js/
@cp js/tests/vendor/jquery.js static/js/
Expand Down
10 changes: 5 additions & 5 deletions gist.py
Expand Up @@ -42,7 +42,7 @@ def static(strng) :

@app.route('/')
def hello():
return static('index.html')
return render_template('index.html')


@app.route('/assets/<path:path>')
Expand All @@ -52,12 +52,12 @@ def sitemap(path):


@app.errorhandler(500)
def page_not_found(error):
return static('500.html'),500
def internal_error(error):
return render_template('500.html'),500

@app.errorhandler(404)
def page_not_found(error):
return static('404.html'),404
return render_template('404.html'),404

@app.route('/404')
def four_o_foru():
Expand All @@ -83,7 +83,7 @@ def create(v=None):
if value.startswith('http://') and value.endswith('.ipynb'):
return redirect('/url/'+value[7:])

return static('unknown_filetype.html')
return render_template('unknown_filetype.html')

#https !
@cachedfirstparam
Expand Down
3 changes: 3 additions & 0 deletions githubapp.py
Expand Up @@ -65,6 +65,9 @@ def dummy1(user,repo,tree,branch):
#return open('static/%s/%s/%s'%(repo,tree,branch)).read()
return browse_tree_blob(user,repo,tree,branch,None)

@app.errorhandler(500)
def internal_error(error):
return render_template('500.html'),500

#@app.route('/<user>/<repo>/tree/<branch>/<path:subfile>')
def bowse_tree(user,repo,branch,subfile, parent=None):
Expand Down
3 changes: 0 additions & 3 deletions hlog

This file was deleted.

108 changes: 0 additions & 108 deletions static/404.html

This file was deleted.

109 changes: 0 additions & 109 deletions static/500.html

This file was deleted.

44 changes: 0 additions & 44 deletions static/build/index.js

This file was deleted.

0 comments on commit 732a9e5

Please sign in to comment.