makinacorpus / django-leaflet

Use Leaflet in your Django projects
GNU Lesser General Public License v3.0
717 stars 283 forks source link

Jinja2 support? #109

Open dchaplinsky opened 9 years ago

dchaplinsky commented 9 years ago

I've implemented jinja2 template support (plugged in with help of django-jinja) for django-leaflet.

Here are the template tags: https://github.com/dchaplinsky/garnahata.in.ua/blob/master/garnahata_site/catalog/templatetags/leaflet_tags.py

And here goes converted templates: https://github.com/dchaplinsky/garnahata.in.ua/tree/master/garnahata_site/catalog/templates/leaflet

Hope you'll find them useful

leplatrem commented 9 years ago

Thank you Dimitri!

What do you think would be the best way to make them available to as many people as possible ? Should we mention them in the README ? Include them in a subfolder here (I wouldn't want to introduce a dependency on django-jinja though) ? How would you do ?

dchaplinsky commented 9 years ago

https://github.com/cyberdelia/django-pipeline/blob/master/pipeline/templatetags/ext.py

Check this out.

manikos commented 5 years ago

Any news on a PR on this issue?