1. arteria
  2. Untitled project
  3. django-easy-maps

Commits

Mikhail Korobov  committed 786f947

rewrite {% with %} tag with pre 1.3-compatible syntax

  • Participants
  • Parent commits 343787f
  • Branches default

Comments (0)

Files changed (1)

File easy_maps/templates/easy_maps/map.html

View file
  • Ignore whitespace
-{% with lat=map.latitude|stringformat:"f" long=map.longitude|stringformat:"f" %}
+{% with map.latitude|stringformat:"f" as lat %}
+{% with map.longitude|stringformat:"f" as long %}
+
 {% block api_js %}
     <!-- Google Maps API javascript -->
     <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
         {% endblock %}
     </script>
 {% endblock %}
+    
+{% endwith %}
 {% endwith %}