Skip to content
This repository
tree: 96ffcbf8f3
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (16 sloc) 0.406 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# -*- coding: utf-8 -*-
import web
import config

render = web.template.render('templates/', cache=config.cache_templates)

def tools(**k):
    return render.tools()

def addurl(**k):
    return render.addurl()

def checkurl(**k):
    return render.checkurl()

def badrequest(**k):
    return render.badrequest(**k)

web.template.Template.globals.update(dict(
  datestr = web.datestr,
  render = render
))
Something went wrong with that request. Please try again.