Wpis z mikrobloga

Mam stronkę w index.html hostowaną przez pythonowe bottle. W htmlu wywołuję sobie funkcję js. Chciałabym przekazać tej funkcji jakiś argument. Jak to zrobić?

W pythonie mam:

@app.route('/costam/client/')
def serve_static_file_costam_for_client( id ):
return static_file('static/index.html', '')

#python #webdev
  • 3