Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass options in template tag #12

Open
schorfES opened this issue Mar 14, 2018 · 0 comments
Open

Pass options in template tag #12

schorfES opened this issue Mar 14, 2018 · 0 comments

Comments

@schorfES
Copy link
Collaborator

It would be nice to pass the used options from an ultimatethumb sourceset into the ultimatethumb template tag:

{% load ultimatethumb_tags %}

{% ultimatethumb 'sourceset' image '800x0' retina=True crop='NW' %}
{# use the sourceset... #}

{% with last=sourceset|last %}
    {% ultimatethumb 'thumbnail' last.source. '200x0' options=last.options %}
    {# use the thumbnail sourceset... #}
{% endwith %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant