Integration of fanstatic in Silva CMS
This package provides a custom fanstatic injector called rules. It can be used like this inside the Paster configuration:
injector = rules rules = if there is <!-- Here goes Fanstatic top CSS --> replace with all css resources if there is <!-- Here goes Fanstatic top JS --> replace with all js top resources if there is <!-- Here goes Fanstatic bottom JS --> replace with all js bottom resources otherwise insert before </head>
The rules let you look for specific markup in the generated HTML and will insert the resources around them, if present.
This package provides additional objects ExternalResources and Snippet in order to include external URLs as resources and inline snippets too.
You can find the code of this extension in Git: https://github.com/silvacms/silva.fanstatic.
- Add a Fanstatic injector called rules that let you described precisely where resources should be injected. This requires fanstatic 1.0.
- Add support for special resources ExternalResource and Snippet. They let you include resources that are external resources and inline snippet instead of resources served by fanstatic.
- Fanstatic libraries are created with a version equals to the version of the Python package they are declared in. This ensure to create the same URLs accross multiple servers.
- Automatically use *.min.ext file as a minified version for a given *.ext file if it is present.
- Initial release.