def requirejs_xmodule(request):
 return render_to_response('xmodule.js', {'urls': get_xmodule_urls()}, content_type='text/javascript')

def requirejs_xmodule ( request ) : return render_to_response ( 'xmodule.js' , { 'urls' : get_xmodule_urls ( ) } , content_type = 'text/javascript' )
view function that returns a requirejs-wrapped javascript file that loads all the xmodule urls; meant to be loaded via requirejs .