tw2.util.html5shimHTML5 Shim resource for TW2 | |
Download |
tw2.util.html5shim Ranking & Summary
Advertisement
- License:
- Other/Proprietary Li...
- Price:
- FREE
- Publisher Name:
- Greg Jurman
- Publisher web site:
- https://github.com/gregjurman/
tw2.util.html5shim Tags
tw2.util.html5shim Description
tw2.util.html5shim allows HTML5-Shim to be added as a widget-specific or global resource for compatibility with Internet Explorer versions lower than 9.0.Using tw2.util.html5shimInside ToscaWidget2 WidgetsIn the widgets.py file (or a resource declaration file if you use one) add following:Top of file:from tw2.util.html5shim import html5shim_jsIn the widget declaration add html5shim_js to the resources attribute like so:class YourWidget(tw2.core.Widget): resources = Turbogears 2If you need HTML5-Shim to be injected globally, add the following to projectname/base/lib.pyTop of file:from tw2.util.html5shim import html5shim_jsAbove the return statement in BaseController.__call__:html5shim_js.inject()Product's homepage
tw2.util.html5shim Related Software