Render and include
{% render 'card' with product %}and{% render 'card' for products %}now render the snippet. Inside the snippet, the object has the name of the snippet, or the name you give withas. Before, these forms rendered nothing.- In
{% render 'card' for products %}, the snippet can readforloop. {% include %}renders a snippet the same way asrender, and its snippet name can come from a variable. Before, it did not parse.- A snippet can read the variables of its caller, and its own variables are visible after the
rendertag.
Paginate
{% paginate collection.products by 24 cod %}now also sets thepaginateobject, withpage_paramset topage[cod].
See paginate.