def get_compiled_js_urls(label): t = '<script type="text/javascript" src="%s"></script>\n' media_compiler.set_verbose_method(media_compiler.VERBOSE_LOGGING) tags = [] for url in media_compiler.get_js_urls(label, auto_compile=False): tags.append(t % url) return Markup(''.join(tags))
def get_compiled_js_urls(label): t = '<script type="text/javascript" src="%s"></script>\n' media_compiler.set_verbose_method(media_compiler.VERBOSE_LOGGING) markup = '' for url in media_compiler.get_js_urls(label, auto_compile=False): markup += t.replace('%s', url) return Markup(markup)