-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
49 lines (33 loc) · 1.23 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
===============
silva.fanstatic
===============
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.
.. _fanstatic: http://www.fanstatic.org
.. _Silva developer documentation: http://docs.silvacms.org/latest/