Login

django image bundle exaple template

Author:
amitu
Posted:
June 11, 2007
Language:
HTML/template
Version:
Not specified
Tags:
django imagebundle
Score:
1 (after 1 ratings)

This is an example template to show the usage of django image bundle.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% load imgbundle %}
{% imgbundle %}
<html><head><title>django image bundle demo</title>
<style type="text/css">
div#wrong img
{
    padding: 10px 10px;
    border: 1px solid red;
}
#right
{
    padding: 10px 10px;
    border: 1px solid red;
    float: left;
}
</style>
</head><body>
<p>This is the first image:</p>
{% img src="/static3/winOpen.gif" %}
<p>This is image 2:</p>
{% img src="/static2/dolltoo.JPG" %}
<p>This is image 3:</p>
{% img src="/static2/google.gif" %}
<p>4</p>
{% img src="/static2/P1020730.JPG" height="400px" %}
<p>this one got padding</p>
<div id="wrong">
{% img src="/static2/P1020730.JPG" width="300px" %}
</div>
<p>this one got padding right</p>
<div id="right">
{% img src="/static2/P1020730.JPG" width="300px" %}
</div>
<p style="clear: both">blah blah</p>
</body></html>
{% endimgbundle %}

More like this

  1. django image bundle template tag library by amitu 7 years, 11 months ago
  2. Simple "html email with images" sender by andres_torres_marroquin 4 years, 2 months ago
  3. Image inlining template tag lib by rbeck 4 years, 6 months ago
  4. ImageMagick commands from Django Templates by cogat 6 years ago
  5. Image inlining template tag example by rbeck 4 years, 6 months ago

Comments

Please login first before commenting.