Changelog
[1.2.3] - 2022-11-13
FileContents.lang.variants
for path with no directory.Changelog
[1.2.2] - 2022-11-13
DomReplaceCommand
now accepts a second Context type parameter, to allow it to query custom context members without casting.Changelog
[1.2.0] - 2022-11-13
FileContents.lang
changed from a single string to a { lang, variants }
so that you can know which variants of a file exist.Changelog
[1.1.0] - 2022-11-11
This release adds API consistency and generalization, as well as a number of tests.
However it contains a regression that prevents HTML files to be parsed, so use 1.1.1+ instead.
FileContents.readOrNew()
to allow creating a FileContents in memory that doesn't exist on disk.FileInfo
renamed as FileContents
to both improve consistency and avoid name collisions.HtmlFileInfo
renamed as HtmlFileContents
for the same reasons.writeFileInfo()
becomes FileContents.write()
getFileInfo()
becomes FileContents.read()
SsgContext.locale
becomes a single string (not an array of strings anymore) as you cannot output for multiple languages at once (use one context per language if you need to do so).