django-leaflet icon indicating copy to clipboard operation
django-leaflet copied to clipboard

Jinja2 support?

Open dchaplinsky opened this issue 10 years ago • 3 comments

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

dchaplinsky avatar Jul 12 '15 00:07 dchaplinsky

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 ?

leplatrem avatar Jul 13 '15 12:07 leplatrem

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

Check this out.

dchaplinsky avatar Jul 13 '15 13:07 dchaplinsky

Any news on a PR on this issue?

manikos avatar Nov 01 '19 19:11 manikos