This package provides an integration of fanstatic into Silva 3.0. In order to know how to use it, please refer to the Silva developer documentation.

Custom injector

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

   insert before </head>

The rules let you look for specific markup in the generated HTML and will insert the resources there, if present.

Additional API

This package provides additional objects ExternalResources and Snippet in order to include external URLs as resources and inline snippets too.

Code repository

You can find the code of this extension in Mercurial:

Available releases

Release version Release date Release files
silva.fanstatic 1.2 Oct 8, 2013 4:28:53 PM silva.fanstatic-1.2.tar.gz
silva.fanstatic 1.1.1 May 24, 2013 12:00:01 PM silva.fanstatic-1.1.1.tar.gz
silva.fanstatic 1.1 Sep 3, 2012 4:51:20 PM silva.fanstatic-1.1.tar.gz
silva.fanstatic 1.0 Nov 8, 2011 4:46:18 PM silva.fanstatic-1.0.tar.gz

License: New BSD