Open seanbrant opened 14 years ago
I think this is solving the wrong problem, the issue here is that there's currently no way to handle nodelists at all, I'd prefer not to special case {% if %} type tags.
I agree with you. This was just the quickest way to get something that worked for me. I still think support for {% if %} type tags is needed, just not sure the best way to handle it.
It would be nice to have an easier way to create boolean tags.
Template:
Tag:
I took a stab at it in my fork. seanbrant/django-templatetag-sugar@ea353e5e50152fe5a353e5aa7fff1fdbb76cf2e0