Skip to main content

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

   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.

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 Git: https://github.com/silvacms/silva.fanstatic.

Changes

1.2 (2013/10/08)

  • 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.

1.1.1 (2013/05/23)

  • 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.

1.1 (2012/09/03)

  • Automatically use *.min.ext file as a minified version for a given *.ext file if it is present.

1.0 (2011/11/08)

  • Initial release.

Metadata

Release files for silva.fanstatic 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for silva.fanstatic 1.2
File Size Uploaded
silva.fanstatic-1.2.tar.gz 13.3 kB Details

Release files / silva.fanstatic-1.2.tar.gz

Download URL silva.fanstatic-1.2.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8be9110d7153aa73d6fccd1ab4a7f126b715759615664f640ae53cf78358370b
BLAKE2b-256 checksum
How to use checksums
aa9a590fdc9f8e4e6d1def8c09ee095f431e1e526ecda841f8d309425e2832b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page