Writing a Template Tag in Django
问题 I'm trying to customise a CMS written in Django. The content editors aren't flexible enough so I'm trying to come up with a better solution. Without over-explaining it, I'd like it to be a bit like django-better-chunks or django-flatblocks . You set up an editable region entirely from within the template. I want to bind these editable regions to a mix of strings and object instances. One example would be having multiple editable regions based on one product: {% block product_instance "title"