comparison piecrust/__init__.py @ 852:4850f8c21b6e

core: Start of the big refactor for PieCrust 3.0. * Everything is a `ContentSource`, including assets directories. * Most content sources are subclasses of the base file-system source. * A source is processed by a "pipeline", and there are 2 built-in pipelines, one for assets and one for pages. The asset pipeline is vaguely functional, but the page pipeline is completely broken right now. * Rewrite the baking process as just running appropriate pipelines on each content item. This should allow for better parallelization.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 17 May 2017 00:11:48 -0700
parents 7d83b9484b98
children cde2362f4aff
comparison
equal deleted inserted replaced
851:2c7e57d80bba 852:4850f8c21b6e
17 DEFAULT_DATE_FORMAT = '%b %d, %Y' 17 DEFAULT_DATE_FORMAT = '%b %d, %Y'
18 DEFAULT_THEME_SOURCE = 'https://bitbucket.org/ludovicchabant/' 18 DEFAULT_THEME_SOURCE = 'https://bitbucket.org/ludovicchabant/'
19 19
20 PIECRUST_URL = 'https://bolt80.com/piecrust/' 20 PIECRUST_URL = 'https://bolt80.com/piecrust/'
21 21
22 CACHE_VERSION = 29 22 CACHE_VERSION = 30
23 23
24 try: 24 try:
25 from piecrust.__version__ import APP_VERSION 25 from piecrust.__version__ import APP_VERSION
26 except ImportError: 26 except ImportError:
27 APP_VERSION = 'unknown' 27 APP_VERSION = 'unknown'
28 28
29 import os.path 29 import os.path # NOQA
30 RESOURCES_DIR = os.path.join(os.path.dirname(__file__), 'resources') 30 RESOURCES_DIR = os.path.join(os.path.dirname(__file__), 'resources')
31 31