django-cropduster
django-cropduster copied to clipboard
Add get_thumbs templatetag.
If we decide this is the way to go, I can write tests for it. In particular for prefetch things.
I'm fine with this (and want One True Image Tag in the end). The only caveat is that some crop sizes have dashes in them and can't appear in the template. We'll want to migrate these to underscores, which is a good idea anyway.
(I will now await the obligatory snarky Jinja comment.)
I think this is the type of API that we want to move toward eventually but I'm not entirely convinced the future is in the templatetag. @joshmaker envisions a day where the API is something like article.lead_image.thumbs.300.url
.
Agreed, if that's possible. It'd be nice to use the API the same way in views and templates, for setting the og:image, etc.
@ctbarna has this been abandoned in favor of putting the templatetag elsewhere? Or are we still planning to revisit this approach?