ssg-api
Advanced tools
Changelog
[1.2.0] - 2022-11-13
SsgFile.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.
SsgFile.readOrNew()
to allow creating a SsgFile in memory that doesn't exist on disk.FileInfo
renamed as SsgFile
to both improve consistency and avoid name collisions.HtmlFileInfo
renamed as HtmlSsgFile
for the same reasons.writeFileInfo()
becomes ssgFile.write()
getFileInfo()
becomes SsgFile.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).