Fork me on GitHub
#luminus
<
2016-05-03
>
richiardiandrea00:05:41

Hello folks! can I express the following in selmer?

(selmer/render "{% if any *urka in* features %}hello!{% endif %}" {:features #{"arke" "urka"}})

richiardiandrea00:05:37

The example on the README is kind of off:

(selmer/render "{% if any foo bar baz %}hello{% endif %}" {:bar "foo"}) => "hello"
(selmer/render "{% if any foo bar baz %}hello{% endif %}" {:bar "boom"}) => "hello"

richiardiandrea01:05:51

ah the filter is on the key, not the value...understood 😄

rickmoynihan15:05:23

Hey has anyone seen this ↖️ error when using the template before?

rickmoynihan15:05:44

Ok I know what it is - not a big deal - as it's easy to work around - regardless I've filed a bug: https://github.com/luminus-framework/luminus-template/issues/224