Fork me on GitHub
#beginners
<
2019-03-02
>
Nazral09:03:07

Is Enlive still the recommended library to parse HTML ?

borkdude10:03:16

I usually use Jsoup directly without any wrappers (Jsoup is amazing)

Nazral13:03:36

Ok thank you!

3Jane19:03:21

o/ not really sure where to ask, does anyone use selmer? I want to include a template, and I know you can provide static values using with, but how do I pass values from actual variables? (I tried with x=var, with x={{ var }} and with x="{{ var }}", I’m probably completely off base as I didn’t go into how these work… essentially what I want is to have a small html snippet that I can reuse with several injected variables)

valerauko08:03:28

you can try asking in #luminus

3Jane09:03:59

thanks 🙂

3Jane09:03:22

I found a workaround, for anyone following this:

{% with x=var1 %}
{% include "template-using-x.html" %}
{% endwith %}
{% with x=var2 %}
{% include "template-using-x.html" %}
{% endwith %}