# HG changeset patch # User Thierry Florac # Date 1465986442 -7200 # Node ID 3198f3bcf67da8c17c8a6b1007a655421839ec1b # Parent 60f49532b2627f0f9c8893abcc5c5535b4910acb Added interfaces and adapters to handle HTML metas headers diff -r 60f49532b262 -r 3198f3bcf67d src/pyams_skin/interfaces/metas.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_skin/interfaces/metas.py Wed Jun 15 12:27:22 2016 +0200 @@ -0,0 +1,34 @@ +# +# Copyright (c) 2008-2015 Thierry Florac +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# + +__docformat__ = 'restructuredtext' + +# import standard library + +# import interfaces + +# import packages +from zope.interface import Interface + + +class IMetaHeader(Interface): + """Meta HTML header""" + + def render(self): + """Render META header""" + + +class IHTMLContentMetas(Interface): + """Get list of metas headers associated with given context""" + + def get_metas(self): + """Get content metas""" diff -r 60f49532b262 -r 3198f3bcf67d src/pyams_skin/interfaces/templates/fullpage-layout.pt --- a/src/pyams_skin/interfaces/templates/fullpage-layout.pt Wed Jun 15 12:26:42 2016 +0200 +++ b/src/pyams_skin/interfaces/templates/fullpage-layout.pt Wed Jun 15 12:27:22 2016 +0200 @@ -1,16 +1,13 @@ - - - + - - - - + @@ -26,7 +23,7 @@
diff -r 60f49532b262 -r 3198f3bcf67d src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt --- a/src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt Wed Jun 15 12:26:42 2016 +0200 +++ b/src/pyams_skin/interfaces/templates/fullpage-modal-layout.pt Wed Jun 15 12:27:22 2016 +0200 @@ -1,16 +1,13 @@ - - - + - - - - + @@ -26,7 +23,7 @@