clintecker / django-chunks

Think of it as flatpages for small bits of reusable content you might want to insert into your templates and manage from the admin interface.
http://github.com/clintecker/django-chunks
BSD 3-Clause "New" or "Revised" License
304 stars 101 forks source link

If {{ chunk name }} then do something? #14

Open deronsizemore opened 8 years ago

deronsizemore commented 8 years ago

Anyone know if this is possible? I've messed around a bit and can't seem to get anything to work so I assume it won't work but was curious if anyone has done something like this?

{% if chunk_name %} do something {% endif %}