Login

Image inlining template tag example

Author:
rbeck
Posted:
November 17, 2010
Language:
HTML/template
Version:
1.2
Score:
1 (after 1 ratings)

The example of the Image inlining template tag lib which inline images in the browser instead of making an Http request.

The lib is available at : http://djangosnippets.org/snippets/2268/

1
2
3
4
5
6
7
{% load image_tags %}
{% embedded_img src="/media/images/002.gif" height="200px" width="200px" alt="{{my_var}}" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" height="200px" width="200px" alt="001" %}
{% embedded_img src="upload/images/logo_corp_264.png" alt="corp" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" width="200px" alt="lala" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" height="200px" width="200px" alt="my image" %}
{% embedded_img src="{{MEDIA_URL}}upload/images/001.jpg" %}

More like this

  1. Bootstrap Accordian by Netplay4 5 years, 3 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 3 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 3 months ago
  4. Reusable form template with generic view by roldandvg 8 years, 4 months ago
  5. Pagination Django with Boostrap by guilegarcia 8 years, 6 months ago

Comments

Please login first before commenting.