Declare PyAMS_portal resources
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 May 2017 11:18:05 +0200
changeset 26 5bca394e019e
parent 25 b233892afe9a
child 27 3cdaebcaf5a5
Declare PyAMS_portal resources
src/pyams_portal/__init__.py
--- a/src/pyams_portal/__init__.py	Tue May 16 11:17:44 2017 +0200
+++ b/src/pyams_portal/__init__.py	Tue May 16 11:18:05 2017 +0200
@@ -13,9 +13,18 @@
 __docformat__ = 'restructuredtext'
 
 
-from fanstatic import Library
+from fanstatic import Library, Resource
 library = Library('pyams_portal', 'resources')
 
+pyams_portal_css = Resource(library, 'css/portal.css',
+                            minified='css/portal.min.css')
+
+pyams_portal = Resource(library, 'js/portal.js',
+                        minified='js/portal.min.js',
+                        bottom=True,
+                        depends=[pyams_portal_css, ])
+
+
 from pyramid.i18n import TranslationStringFactory
 _ = TranslationStringFactory('pyams_portal')