You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taking simple views and turning them into ESI requests is pretty straight forward, but we have the issue of passing GET parameters into the {% esi %} template tag. Opening up this ticket to discuss potential solutions.
The text was updated successfully, but these errors were encountered:
We could scan for double quotes and treat those as full URLs. Seems pretty clunky.
Make {%esi%} a block tag
The idea would be to wrap whatever is in the block as a URL. Something like:
{% esi %}{% url hello_world %}{% endesi %}
Not ideal, but it does provide a pretty straight forward way to handle GET params. For example:
{% esi %}{% url hello_world %}?id=123{% endesi %}
If we go this route, I'd say that the absence of any parameters inside the template tag is what turns it into a URL. If any parameters are specified, its treated like a regular parameter.
We could add an optional parameter to the {% esi %} that looks for something that starts with a "?" and treat that as GET param. Nice and simple, but it does have the drawback of meaning variables inside the GET params are either not supported or we right a mini template parser for the variables.
Taking simple views and turning them into ESI requests is pretty straight forward, but we have the issue of passing GET parameters into the
{% esi %}
template tag. Opening up this ticket to discuss potential solutions.The text was updated successfully, but these errors were encountered: