Extension dropped when using vars with image twig tag #552

paxal opened this Issue Jan 6, 2014 · 1 comment


None yet
1 participant

paxal commented Jan 6, 2014

When using {% image %} tag with vars=["something"] and no output="whatever", the extension of the file is dropped.

This works in JS/CSS, because the default output name (eg css/*.css and js/*.js) already contains the extension. That is not true with images (images/*).

Example :

    {% image "variable_input.{foo}.jpg" vars=["foo", "bar"] debug=true %}
    <url>{{ asset_url }}</url>
    {% endimage %}



Instead of


paxal commented Feb 17, 2014

Any news about this ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment