Declare PyAMS_content resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:07:15 +0200
changeset 80 bebdf1365369
parent 79 5726318eeb90
child 81 3e37d4dd8e3b
Declare PyAMS_content resources
src/pyams_content/skin/__init__.py
--- a/src/pyams_content/skin/__init__.py	Tue May 16 11:06:31 2017 +0200
+++ b/src/pyams_content/skin/__init__.py	Tue May 16 11:07:15 2017 +0200
@@ -15,10 +15,18 @@
 
 # import standard library
 
-# import __interfaces
+# import interfaces
 
 # import packages
-from fanstatic import Library
+from fanstatic import Library, Resource
 
 
 library = Library('pyams_content', 'resources')
+
+
+pyams_content_css = Resource(library, 'css/pyams_content.css',
+                             minified='css/pyams_content.min.css')
+
+pyams_content = Resource(library, 'js/pyams_content.js',
+                         minified='js/pyams_content.min.js',
+                         bottom=True)