def _urls_for_js(urls=None):
if urls is None:<EOL><INDENT>from .urls import urlpatterns<EOL>urls = [url.name for url in urlpatterns if getattr(url, '<STR_LIT:name>', None)]<EOL><DEDENT>urls = dict(zip(urls, [get_uri_template(url) for url in urls]))<EOL>urls.update(getattr(settings, '<STR_LIT>', {}))<EOL>return urls<EOL>
Return templated URLs prepared for javascript.