Пример #1
0
def images(filename):
    return static_file(filename, root=util.abs_path('static/img'))
Пример #2
0
def stylesheets(filename):
    return static_file(filename, root=util.abs_path('static/css'))
Пример #3
0
from cat_facts import util
util.set_root(__file__)

import bottle
app = bottle.Bottle()

bottle.TEMPLATE_PATH.insert(0, util.abs_path('views'))

config = util.load_file_config(app.config, '.config')

facts = util.load_file('static/facts').split('\n')

import views