Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reading an array from python to js

@app.route('/somePath')
def example():
    data = {
        'robotNames': ['Wall-E', 'Bender', 'Rosie']
    }
    return render_template('index.html', data=data)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reading #array #python #js
ADD COMMENT
Topic
Name
1+4 =