# Path: knights/library.py
# class Library:
#     '''
#     Container for registering tags and helpers
#     '''
#     def __init__(self):
#         self.tags = {}
#         self.helpers = {}
# 
#     def tag(self, func=None, name=None):
#         if func is None:
#             return partial(self.tag, name=name)
# 
#         if name is None:
#             name = func.__name__
# 
#         self.tags[name] = func
#         return func
# 
#     def helper(self, func=None, name=None):
#         if func is None:
#             return partial(self.helper, name=name)
# 
#         if name is None:
#             name = func.__name__
# 
#         self.helpers[name] = func
#         return func


from django.core.urlresolvers import reverse
from django.utils import timezone
from django.utils.encoding import iri_to_uri
from knights.library import Library
        from django.conf import settings


register = Library()


@register.helper
def now(fmt):
    return timezone.now().strftime(fmt)


@register.helper
def url(name, *args, **kwargs):
    try:
        return reverse(name, args=args, kwargs=kwargs)
    except:
        return None


@register.helper
def static(filename):
    try:

# Path: knights/library.py
# class Library:
#     '''
#     Container for registering tags and helpers
#     '''
#     def __init__(self):
#         self.tags = {}
#         self.helpers = {}
# 
#     def tag(self, func=None, name=None):
#         if func is None:
#             return partial(self.tag, name=name)
# 
#         if name is None:
#             name = func.__name__
# 
#         self.tags[name] = func
#         return func
# 
#     def helper(self, func=None, name=None):
#         if func is None:
#             return partial(self.helper, name=name)
# 
#         if name is None:
#             name = func.__name__
# 
#         self.helpers[name] = func
#         return func


# Path: knights/compat/django.py
from django.core.urlresolvers import reverse
from django.utils import timezone
from django.utils.encoding import iri_to_uri
from knights.library import Library
        from django.conf import settings



register = Library()


@register.helper
def now(fmt):
    return timezone.now().strftime(fmt)


@register.helper
def url(name, *args, **kwargs):
    try:
        return reverse(name, args=args, kwargs=kwargs)
    except:
        return None


@register.helper
def static(filename):
    try:

    except ImportError: