Exemplo n.º 1
0
def render_conditional_comment_js(url, condition = 'lt', version = '9'):
    return '<!--[if %s IE %s]>%s<![endif]-->' % (condition, version, render_js(url))
Exemplo n.º 2
0
def render_conditional_comment_js(url, condition='lt', version='9'):
    return '<!--[if %s IE %s]>%s<![endif]-->' % (condition, version,
                                                 render_js(url))
Exemplo n.º 3
0
def render_js_d3_new_ie(url):
    """Render the given script tag but prevent < IE 9 from loading it.

    All other browsers will load the script without issue.
    """
    return '<!--[if gte IE 9]><!-->%s<!--<![endif]-->' % render_js(url)
Exemplo n.º 4
0
def ie_lte9_conditional_inclusion(url):
    return '''<!--[if lte IE 9]>{}<![endif]-->'''.format(render_js(url))