# Path: src/librement/utils/urls.py
# def static_media_url(path):
#     return settings.STATIC_MEDIA_URL % {
#         'path': path,
#         'hash': HASHES.get(path, '-'),
#     }


from django import template
from ..urls import static_media_url
# Copyright 2012 The Librement Developers
#
# See the AUTHORS file at the top-level directory of this distribution
# and at http://librement.net/copyright/
#
# This file is part of Librement. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this distribution
# and at http://librement.net/license/. No part of Librement, including
# this file, may be copied, modified, propagated, or distributed except
# according to the terms contained in the LICENSE file.



register = template.Library()

@register.simple_tag
def static(url):

# Path: src/librement/utils/urls.py
# def static_media_url(path):
#     return settings.STATIC_MEDIA_URL % {
#         'path': path,
#         'hash': HASHES.get(path, '-'),
#     }


# Path: src/librement/utils/templatetags/media.py
from django import template
from ..urls import static_media_url

# Copyright 2012 The Librement Developers
#
# See the AUTHORS file at the top-level directory of this distribution
# and at http://librement.net/copyright/
#
# This file is part of Librement. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this distribution
# and at http://librement.net/license/. No part of Librement, including
# this file, may be copied, modified, propagated, or distributed except
# according to the terms contained in the LICENSE file.



register = template.Library()

@register.simple_tag
def static(url):

    return static_media_url(url)