Mercurial > piecrust2
comparison piecrust/__init__.py @ 792:58ebf50235a5
routing: Simplify how routes are defined.
* No more declaring the type of route parameters -- the sources and generators
already know what type each parameter is supposed to be.
* Same for variadic parameters -- we know already.
* Update cache version to force a clear reload of the config.
* Update tests.
TODO: simplify code in the `Route` class to use source or generator transparently.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Sep 2016 08:58:41 -0700 |
parents | f6f9a284a5f3 |
children | 7d83b9484b98 |
comparison
equal
deleted
inserted
replaced
791:504d6817352d | 792:58ebf50235a5 |
---|---|
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 = 28 | 21 CACHE_VERSION = 29 |
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' |