# Path: solace/utils/packs.py
# class PackManager(object):
# 
#     compressor_class = None
# 
#     def __init__(self, directory, link_func=None, css_first=True,
#                  css_template=CSS_TEMPLATE, js_template=JS_TEMPLATE,
#                  build_filename='%(name)s.compressed.%(ext)s',
#                  charset='utf-8'):
#         self.directory = directory
#         if link_func is None:
#             link_func = default_link_func
#         self.link_func = link_func
#         self.css_first = css_first
#         self.css_template = CSS_TEMPLATE
#         self.js_template = JS_TEMPLATE
#         self.build_filename = build_filename
#         self.charset = charset
#         self._packs = {}
# 
#     def compress(self, log=None):
#         compressor = self.compressor_class(self, log)
#         for pack in self._packs.itervalues():
#             pack.compress(compressor)
# 
#     def remove_compressed(self):
#         for pack in self._packs.itervalues():
#             pack.remove_compressed()
# 
#     def add_pack(self, name, files):
#         self._packs[name] = Pack(self, name, files)
# 
#     def remove_pack(self, name):
#         rv = self._packs.pop(name, None)
#         if rv is None:
#             raise ValueError('no pack named %r found' % name)
# 
#     def __getitem__(self, name):
#         return self._packs[name]


import os
from solace.utils.packs import PackManager
# -*- coding: utf-8 -*-
"""
    solace.packs
    ~~~~~~~~~~~~

    The packs for static files.

    :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""



# Path: solace/utils/packs.py
# class PackManager(object):
# 
#     compressor_class = None
# 
#     def __init__(self, directory, link_func=None, css_first=True,
#                  css_template=CSS_TEMPLATE, js_template=JS_TEMPLATE,
#                  build_filename='%(name)s.compressed.%(ext)s',
#                  charset='utf-8'):
#         self.directory = directory
#         if link_func is None:
#             link_func = default_link_func
#         self.link_func = link_func
#         self.css_first = css_first
#         self.css_template = CSS_TEMPLATE
#         self.js_template = JS_TEMPLATE
#         self.build_filename = build_filename
#         self.charset = charset
#         self._packs = {}
# 
#     def compress(self, log=None):
#         compressor = self.compressor_class(self, log)
#         for pack in self._packs.itervalues():
#             pack.compress(compressor)
# 
#     def remove_compressed(self):
#         for pack in self._packs.itervalues():
#             pack.remove_compressed()
# 
#     def add_pack(self, name, files):
#         self._packs[name] = Pack(self, name, files)
# 
#     def remove_pack(self, name):
#         rv = self._packs.pop(name, None)
#         if rv is None:
#             raise ValueError('no pack named %r found' % name)
# 
#     def __getitem__(self, name):
#         return self._packs[name]


# Path: solace/packs.py
import os
from solace.utils.packs import PackManager

# -*- coding: utf-8 -*-
"""
    solace.packs
    ~~~~~~~~~~~~

    The packs for static files.

    :copyright: (c) 2010 by the Solace Team, see AUTHORS for more details.
    :license: BSD, see LICENSE for more details.
"""



pack_mgr = PackManager(os.path.join(os.path.dirname(__file__), 'static'))