Snippet List
This filter will return data URI for given file, for more info go to:
[wikipedia](http://en.wikipedia.org/wiki/Data_URI_scheme)
Sample Usage:
`
<img src="{{ "/home/visgean/index.png"|dataURI }}">
`
will be filtered into:
`
<img src="data:image/png;base64,iVBORw0...">
`
This is good for small images.
This is a simple URI Querystring generator that can be used with Django for generating URI Querystring and preserving the current
Currently working to port into a template tag to allow
{% urlgen page|5 %} {% urlgen page 5 %} {% urlgen page,5 %}
OR
{% urlgen sort name display all %} etc..
- pagination
- url
- uri
- djangourl
The {% url %} templatetag is awesome sometimes it is useful to get the full blown URL with the domain name - for instance for links in emails. The **{% absurl %}** templatetag mirrors the behaviour of {% url %} but inserts absolute URLs with the domain of the current Site object.
Usage:
{% absurl viewname %}
>>> http://www.example.org/my/view/
- url
- templatetags
- absolute
- uri
3 snippets posted so far.