Metadata-Version: 1.0
Name: z3c.resourceinclude
Version: 0.1
Summary: Machinery to include web resources based on request layer.
Home-page: UNKNOWN
Author: Malthe Borch
Author-email: mborch@gmail.com
License: ZPL
Description: Overview
        --------
        
        
        * Cascading stylesheets (.css)
        * Kinetic stylesheets (.kss)
        * Javascript (.js)
        
        
        Usage
        -----
        
        The package operates with browser resources, registered individually
        or using the resource directory factory.
        
        A simple example::
        
        <configure xmlns="http://namespaces.zope.org/zope"
        xmlns:browser="http://namespaces.zope.org/browser">
        
        <include package="z3c.resourceinclude" file="meta.zcml" />
        <include package="z3c.resourceinclude" />
        
        <browser:resource name="example.css" file="example.css" />
        
        <browser:resourceInclude
        layer="zope.publisher.interfaces.browser.IDefaultBrowserLayer"
        include="example.css"
        />
        
        </configure>
        
        
        This registration means that whenever the request provides
        ``IDefaultBrowserLayer`` the resource named 'example.css' will be
        included on the page.
        
        To render HTML snippets that include applicable resources, a content
        provider is provided, see ``z3c/resourceinclude/provide.py``.
        
        A convenience method is provided to require a given resource layer:
        
        >>> from z3c.resourceinclude import provide
        >>> provide(IMyLayer)
        
        Ordering
        --------
        
        Resources will be included in the order they're registered for
        inclusion; within an include-definition, order is respected only for
        resources of similar kind.
        
Platform: UNKNOWN
Classifier: Framework :: Zope2
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Framework :: Zope3
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
