how to render ecmascript 6 with python?

Viewed 798

I try to run ECMAScript 6 with python

I already try that

from quickjs import Function
from py_mini_racer import py_mini_racer
import execjs
import js2py
import requests_html

js = """
function test(){
    document.write(`
    """+html+"""`);
return document.documentElement?.innerHTML
}
//test()
"""

result = js2py.eval_js(js)
print(result)

TemplateElement is not supported by ECMA 5.1.

0 Answers
Related