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

Allow chunk content to included (like the {% include %} tag) #3

Open wnielson opened 14 years ago

wnielson commented 14 years ago

It would be nice to be able to include a chunk in a similar fashion to the way the {% include %} tag works. I've created a patch that adds an additional tag to django-chunks, {% include_chunk %}, which can be use like so:

{% include_chunk "some_chunk_name" %}

The diff can be found here