Tags¶
Cloud browser template tags.
Media URL node.
Render.
Static application media URL (or
None
).
Get base media URL for application static media.
Correctly handles whether or not the settings variable
CLOUD_BROWSER_STATIC_MEDIA_DIR
is set and served.For example:
<link rel="stylesheet" type="text/css" href="{% cloud_browser_media_url 'css/cloud-browser.css' %}" />
Truncate string on character boundary.
Note
Django ticket 5025 has a patch for a more extensible and robust truncate characters tag filter.
Example:
{{ my_variable|truncatechars:22 }}
- Parameters
value (
string
) – Value to truncate.num (
int
) – Number of characters to trim to.