Releases: moonwave99/waffel
Waffel v0.1.9
JSON files inside data folder get parsed now, e.g.:
/
|- data
|- posts.json
|- authors.json
Get parsed into the data
object:
data: {
posts: [ ... ],
authors: [ ... ]
}
Note: data is parsed as is. Intended use case is to have structured data outside of the Markdown docs case.
Waffel 0.1.8
Updates deps.
Waffel 0.1.6
Introduces utils.relativisePath
in order to have a platform agnostic path resolver.
Waffel 0.1.5
It is possible now to pass configuration params via constructor:
wfl = new Waffel
config:
env: 'dev'
Notice: they will be overridden by whatever found in site.yml
of course.
Waffel 0.1.4
Memoize loc()
for performance.
Waffel 0.1.3
Fix loc()
helper.
Waffel 0.1.2
It is possible to use loc()
as a filter, useful when chaining filters on array/collections, e.g.:
{% for posts in data.posts | toArray | loc(page.language) | where({ 'published' : true }) %}
# here you have the localised, filtered post
{% endfor %}
Notice: you have to explicitly pass the language to the filter.
Waffel 0.1.1
Is it now possible to Add pageLimit
parameter to site pages [see #4 ].
Waffel 0.1.0
First stable version is here! This implies a lot of good things:
- semver;
- up to date documentation;
- a decent test suite, that you can run via
npm run test
and crossing fingers.