rDrama/files
TLSM fcb51c09d3
Implement assetcache module with asset hashing.
Provides a module `assetcache` to support automatic cachebusting of
static web assets, rather than the current approach of incrementing
a version number.

On module load, it walks the file/assets/ dir, computes a CRC32 of
each asset, and provides those hashes via `assetcache_get(path)` at
runtime. The primary consumer of hashes at present is the new `asset`
filter for Jinja2, which accepts a relative asset path and returns the
full path, with cache busting, suitable for final use in the template.

Ex: `{{ 'css/main.css' | asset }}`
2022-08-30 16:00:24 -04:00
..
assets Remove unused copyrighted assets. 2022-08-30 14:59:23 -04:00
classes Fix some mod log errors and make it more durable to future changes. 2022-08-27 11:23:12 -05:00
commands [#72] Add seed_db command 2022-06-09 01:33:58 -07:00
helpers Implement assetcache module with asset hashing. 2022-08-30 16:00:24 -04:00
mail Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE. 2022-07-31 18:53:18 -05:00
routes Fix flask-limiter having null limit_key. 2022-08-30 06:37:56 -05:00
templates Fix misspelling of "culture ware" 2022-08-29 14:16:18 -05:00
tests Add basic posting to the e2e test. 2022-05-21 21:39:54 -05:00
__init__.py Initial e2e testing 2022-05-13 02:55:29 -05:00
__main__.py Fix flask-limiter having null limit_key. 2022-08-30 06:37:56 -05:00
cli.py [#72] Ensure seed_db command is actually imported when calling into flask 2022-06-09 01:34:46 -07:00