Skip to content

Waffel 0.1.2

Choose a tag to compare

@moonwave99 moonwave99 released this 12 May 10:47
· 39 commits to master since this release

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.