def render(self, context):
module_path = self.path.resolve(context)<EOL>if not settings.SYSTEMJS_ENABLED:<EOL><INDENT>if settings.SYSTEMJS_DEFAULT_JS_EXTENSIONS:<EOL><INDENT>name, ext = posixpath.splitext(module_path)<EOL>if not ext:<EOL><INDENT>module_path = '<STR_LIT>'.format(module_path)<EOL><DEDENT><DEDENT>if settings.SYSTEMJS_SERVER_URL:<EOL><INDENT>tpl = """<STR_LIT>"""<EOL><DEDENT>else:<EOL><INDENT>tpl = """<STR_LIT>"""<EOL><DEDENT>return tpl.format(app=module_path, url=settings.SYSTEMJS_SERVER_URL)<EOL><DEDENT>rel_path = System.get_bundle_path(module_path)<EOL>url = staticfiles_storage.url(rel_path)<EOL>tag_attrs = {'<STR_LIT:type>': '<STR_LIT>'}<EOL>for key, value in self.tag_attrs.items():<EOL><INDENT>if not isinstance(value, bool):<EOL><INDENT>value = value.resolve(context)<EOL><DEDENT>tag_attrs[key] = value<EOL><DEDENT>return """<STR_LIT>""".format(<EOL>url=url, attrs=flatatt(tag_attrs)<EOL>)<EOL>
Build the filepath by appending the extension.