def static_mod(path):
    '''
    Temporary tag for replacing 'static-preprocessors' with modified 'static-precompilers'
    '''
    new_path = path
    basename, ext = posixpath.splitext(path)
    supported_extensions = get_supported_extensions()
    if ext in supported_extensions:
         new_path = compile_static(path)
    return original_static(new_path)
def static(path):
    """
    Joins the given path with the STATIC_URL setting
    and apply registered preprocessors like scss or coffee-script.

    Usage::

        {% static path %}

    Examples::

        {% static "myapp/css/base.css" %}
        {% static variable_with_path %}

    """

    new_path = pp_registry.process_path(path)
    return original_static(new_path)
Пример #3
0
def static(url):
    return original_static(url)
Пример #4
0
def absolute_static(url):
    return absolute_url(original_static(url))
Пример #5
0
def absolute_static(url):
    return absolute_url(original_static(url))
Пример #6
0
def static(url):
    return original_static(url)
Пример #7
0
def static(url): return original_static(url)


# _urlfinderregex = re.compile(r'''http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+^"']|[!*\(\),^"']|(?:%[0-9a-fA-F][0-9a-fA-F]))+''', re.MULTILINE|re.UNICODE)
def urlify(text, reverse=True, target="_blank", hide_protocol=True, classname=None, divider="<br />"):