All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
app#parse
function which is used to parse front matter.- Array of paths can be passed as argument to
app#generate
. - Support for GFM Alerts
via
marked-alert
extension.
app#generate
invokes callback after all pages have been generated.
- Apps added to the main app via
app#use
are automatically mapped whenapp#generate
is called. - Routes added to the main app via
app#page
are automatically mapped whenapp#generate
is called. app#fm
is now used only to register front matter parsing functions, and takes adelim
argument. Front matter parsing has been removed in favor ofapp#parse
.- Upgraded to
marked@13.x
.marked-highlight
andmarked-gfm-heading-id
extensions are both used to maintain same behavior as previousmarked@0.3.x
.
0.4.0 - 2024-03-18
- Added
page#convert()
for writing a page after converting from lightweight markup.
page#compile
takes requiredlayout
as first argument, rather than third.page#compile
now invokes callback after rendering. If content is needed without being inserted into a layout, callpage#convert
.
- Removed
options
argument toapp#markup()
. If default options are needed, they can be bound via closure instead.
- Options passed to
page#compile
are passed toapp#convert
. - Options passed to
page#compile
are passed topage#render
.
0.3.0 - 2024-03-11
- Auto-
require()
'ing of engines expect the module to export a.__express
function, rather than.renderFile
, for compatibility with existing engines and Express conventions. - Renamed
app#convert()
toapp#markup()
. app#convert
is now a synchronous function, returning a string rather than yielding an error and string to a callback function.
- Removed ability to pass module object containing
renderFile
andrender
functions as argument toapp#engine()
. Plugins that render lightweight markup should now be registered viaapp#markup()
. - Removed "identity" engine used to render static, non-templated HTML files.
- Removed support for JSON as a front matter format. If support is needed, it
can be added by applications using
app#fm()
.
0.2.0 - 2023-12-12
0.1.3 - 2018-09-23
0.1.2 - 2018-09-21
- Added
manifest()
to middleware used implicitly by application.
0.1.1 - 2018-09-17
0.1.0 - 2017-10-10
0.0.3 - 2013-05-01
0.0.2 - 2013-02-26
0.0.1 - 2012-11-10
- Initial release.