# Path: statik/templatetags.py
# class TemplateTagStore(object):
#     def __init__(self):
#     def invoke_tag(self, tag_name, context, *args, **kwargs):
#     def register_tag(self, name, fn):
#     def register_filter(self, name, fn):
#     def simple_tag(self, *args, **kwargs):
#             def decorator(fn):
#     def filter(self, *args, **kwargs):
#             def decorator(fn):


from statik.templatetags import register
import random
# -*- coding:utf-8 -*-

from __future__ import unicode_literals


@register.simple_tag(name='rand')
def tag_random(*args):
    lower_bound = 1
    upper_bound = 100
    if len(args) == 2:
        lower_bound = args[0]
        upper_bound = args[1]

# Path: statik/templatetags.py
# class TemplateTagStore(object):
#     def __init__(self):
#     def invoke_tag(self, tag_name, context, *args, **kwargs):
#     def register_tag(self, name, fn):
#     def register_filter(self, name, fn):
#     def simple_tag(self, *args, **kwargs):
#             def decorator(fn):
#     def filter(self, *args, **kwargs):
#             def decorator(fn):


# Path: examples/blog/templatetags/my_tags.py
from statik.templatetags import register
import random

# -*- coding:utf-8 -*-

from __future__ import unicode_literals


@register.simple_tag(name='rand')
def tag_random(*args):
    lower_bound = 1
    upper_bound = 100
    if len(args) == 2:
        lower_bound = args[0]
        upper_bound = args[1]

    return random.randint(lower_bound, upper_bound)