Fork me on GitHub
#cryogen
<
2020-11-18
>
Andrei Stan17:11:36

hello, can someone point me to the documentation about the variables that i can use in cryogen?! For example i need to display all the posts titles but:

{% for post in posts %}
            <li>
                <a href="{{post.uri}}">{{post.title}}</a>
            </li>
        {% endfor %}
does not render anything. If i change posts with latest-posts it works

dorab20:11:30

I dont believe there is explicit documentation. But if you look at the code for the function compile-assets in compiler.clj and look at the params local variable, you will get some idea of the variables passed to the selmer templating engine.