# Path: staticsites/decorators.py
# def staticview(*args, **kwargs):
#     def staticview_decorator(func):
#         # Used for find annotated functions
#         func.is_static_view = True
# 
#         func.path = kwargs.get('path', None)
#         if inspect.isfunction(func.path):
#             func.path = func.path()
# 
#         func.minify = kwargs.get('minify', None)
#         func.gzip = kwargs.get('gzip', None)
#         func.file_storage = kwargs.get('file_storage', None)
#         func.encoding = kwargs.get('encoding', None)
# 
# 
#         return func
#     if not len(kwargs) and len(args) == 1:
#         return staticview_decorator(args[0])
#     return staticview_decorator
# 
# Path: staticsites/conf_dict.py
# class DeployTypes(BaseDict):
#     """
#     Use this dictionary for discriminate config by deploy_type
#     """
#     pass


from django.shortcuts import render_to_response
from django.template import RequestContext
from staticsites.decorators import staticview
from staticsites.conf_dict import DeployTypes


@staticview
def index(request, deploy_type=None):
    ctx = {'title': 'Hello world!', 'js_path': js__test.path.get(deploy_type=deploy_type), 'deploy_type': deploy_type}

    return render_to_response('index.html', ctx, context_instance=RequestContext(request))



# Path: staticsites/decorators.py
# def staticview(*args, **kwargs):
#     def staticview_decorator(func):
#         # Used for find annotated functions
#         func.is_static_view = True
# 
#         func.path = kwargs.get('path', None)
#         if inspect.isfunction(func.path):
#             func.path = func.path()
# 
#         func.minify = kwargs.get('minify', None)
#         func.gzip = kwargs.get('gzip', None)
#         func.file_storage = kwargs.get('file_storage', None)
#         func.encoding = kwargs.get('encoding', None)
# 
# 
#         return func
#     if not len(kwargs) and len(args) == 1:
#         return staticview_decorator(args[0])
#     return staticview_decorator
# 
# Path: staticsites/conf_dict.py
# class DeployTypes(BaseDict):
#     """
#     Use this dictionary for discriminate config by deploy_type
#     """
#     pass


# Path: staticsites/tests/samples/05_ftp/views.py
from django.shortcuts import render_to_response
from django.template import RequestContext
from staticsites.decorators import staticview
from staticsites.conf_dict import DeployTypes



@staticview
def index(request, deploy_type=None):
    ctx = {'title': 'Hello world!', 'js_path': js__test.path.get(deploy_type=deploy_type), 'deploy_type': deploy_type}

    return render_to_response('index.html', ctx, context_instance=RequestContext(request))



@staticview(path=DeployTypes({'demo': 'asd/test.js', '': 'js/test.js'}))