﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18254	Add support for `as <varname>` to the staticfiles {% static %} template tag.	Stephen Burrows	nobody	"I'm in a situation where I want to prepend the current site's domain to a static file's URL. In olden times, I would've done something like:

{{{
{% if STATIC_URL|slice:"":4"" != ""http"" %}http://{{ site.domain }}{% endif %}{{ STATIC_URL }}path/to/file.txt
}}}

But now the standard way to do things is to use the {{{ {% static %} }}} template tag from staticfiles, which currently has no way of assigning to the context - which means that to accomplish the above, you would need to write a custom template tag. Granted, that would be pretty trivial, but it shouldn't be necessary. Having the option of {{{ {% static <path> as <varname> %} }}} would parallel nicely with the {{{ {% url %} }}} tag and similar."	New feature	closed	contrib.staticfiles	dev	Normal	fixed		Stephen Burrows	Accepted	0	0	0	0	1	0
