Mercurial > piecrust2
comparison piecrust/__init__.py @ 787:f6f9a284a5f3
routing: Simplify how route functions are declared and handled.
* Site config now only has to declare the function name.
* Simply code for running route functions.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 01 Sep 2016 23:00:58 -0700 |
parents | 7705b3d981ca |
children | 58ebf50235a5 |
comparison
equal
deleted
inserted
replaced
786:97c1dc568810 | 787:f6f9a284a5f3 |
---|---|
16 DEFAULT_DATE_FORMAT = '%b %d, %Y' | 16 DEFAULT_DATE_FORMAT = '%b %d, %Y' |
17 DEFAULT_THEME_SOURCE = 'https://bitbucket.org/ludovicchabant/' | 17 DEFAULT_THEME_SOURCE = 'https://bitbucket.org/ludovicchabant/' |
18 | 18 |
19 PIECRUST_URL = 'https://bolt80.com/piecrust/' | 19 PIECRUST_URL = 'https://bolt80.com/piecrust/' |
20 | 20 |
21 CACHE_VERSION = 27 | 21 CACHE_VERSION = 28 |
22 | 22 |
23 try: | 23 try: |
24 from piecrust.__version__ import APP_VERSION | 24 from piecrust.__version__ import APP_VERSION |
25 except ImportError: | 25 except ImportError: |
26 APP_VERSION = 'unknown' | 26 APP_VERSION = 'unknown' |