Closed guybedford closed 2 years ago
URL extensions are now supported and cached in this PR as well, allowing for very flexible extensions now:
version = 0.1
extensions = ["https://custom.com/chomp-extensions.js"]
URLs are cached indefinitely with a chomp --clear-cache
. Unique versioned URLs are the recommended pattern.
This rewrites the template system to be based entirely on JS scripting environment, and converts all the internal templates from
.toml
files into.js
files.Before:
After:
In addition this also adds support for a new
extensions
array in the Chompfile, which allows referencing extensions from local JS files:where the extension files can define any custom templates. URL support incoming as well.