tw2.util.html5shim

Software Screenshot:
tw2.util.html5shim
Software Details:
Version: 2.0.1 Alpha
Upload Date: 20 Feb 15
Developer: Greg Jurman
Distribution Type: Freeware
Downloads: 1

Rating: 2.5/5 (Total Votes: 2)

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.html5shim

Inside ToscaWidget2 Widgets

In the widgets.py file (or a resource declaration file if you use one) add following:

Top of file:

from tw2.util.html5shim import html5shim_js

In the widget declaration add html5shim_js to the resources attribute like so:

class YourWidget(tw2.core.Widget):
 resources = [html5shim_js, other_res, another_res]


Turbogears 2

If you need HTML5-Shim to be injected globally, add the following to projectname/base/lib.py

Top of file:

from tw2.util.html5shim import html5shim_js

Above the return statement in BaseController.__call__:

html5shim_js.inject()

Requirements:

  • Python

Comments to tw2.util.html5shim

Comments not found
Add Comment
Turn on images!