ç®ç ååã¯postéä¿¡ã«ããhtmlããpythonå´ã«å¤æ°ããããã ä»åã¯pythonã§æå®ããå¤æ°ããhtmlãªããjavascriptã«ãããæ¹æ³ãã¡ã¢ æµã python->htmlã®å ´å pythonå´ã¯ä»¥ä¸ã«ãã¦htmlã¸å¤æ°ã渡ã return render_template(ââ.html,å¤æ°å=渡ãããä¸èº«) htmlå´ã¯ä»¥ä¸ã«ãã¦pythonããåãåãã表示ã§ãã <p>{{å¤æ°å}}</p> ã·ã³ãã« ä¾ @app.route("/") def hello(): tmp = 1+2 return render_template('test.html', result = tmp) <p>çµæã¯{{result}}ã§ã</p> âï½¢çµæã¯3ã§ãï½£ã¨è¡¨ç¤ºããã æµããpython->javascriptã®å ´å pythonå´ã¯åã return render_te
{{#tags}}- {{label}}
{{/tags}}