Exemple #1
0
def do_static_origin(parser, token):
    """
    Joins the given path with the STATIC_URL setting + host full path.

    Usage::

        {% static path [as varname] %}

    Examples::

        {% static "myapp/css/base.css" %}
        {% static variable_with_path %}
        {% static "myapp/css/base.css" as admin_base_css %}
        {% static variable_with_path as varname %}
    """
    return StaticNode.handle_token(parser, token)
 def do_static(parser, token):
     return StaticNode.handle_token(parser, token)
Exemple #3
0
def custom_static(parser, token):
    return StaticNode.handle_token(parser, token)