@register.function
def js(bundle, debug=None, defer=False, async=False):
    attrs = []
    urls = get_js_urls(bundle, debug)

    attrs.append('src="%s"')

    if defer:
        attrs.append('defer')

    if async:
        attrs.append('async')

    return _build_html(urls, '<script %s></script>' % ' '.join(attrs))
Adds the given worker to the deployment.
dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/helpers.py/js--crossover with--dataset/ETHPy150Open cloudControl/cctrl/cctrl/app.py/AppController.addWorker