Declare PyAMS_thesaurus resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:21:50 +0200
changeset 25 afebe353cfa0
parent 24 e1a86d99c7d4
child 26 f8e004744ae9
Declare PyAMS_thesaurus resources
src/pyams_thesaurus/zmi/__init__.py
--- a/src/pyams_thesaurus/zmi/__init__.py	Tue Nov 15 10:42:18 2016 +0100
+++ b/src/pyams_thesaurus/zmi/__init__.py	Tue May 16 11:21:50 2017 +0200
@@ -18,7 +18,16 @@
 # import interfaces
 
 # import packages
-from fanstatic import Library
+from fanstatic import Library, Resource
 
 
 library = Library('pyams_thesaurus', 'resources')
+
+
+pyams_thesaurus_css = Resource(library, 'css/pyams_thesaurus.css',
+                               minified='css/pyams_thesaurus.min.css')
+
+pyams_thesaurus = Resource(library, 'js/pyams_thesaurus.js',
+                           minified='js/pyams_thesaurus.min.js',
+                           bottom=True,
+                           depends=[pyams_thesaurus_css, ])