how to call js function from flask code example
Example 1: how to add js in flask
<script src="{{url_for('static', filename='js/modernizr-2.6.2.min.js')}}"></script>
Example 2: call javascript function flask
if ("True" == "True")
<script src="{{url_for('static', filename='js/modernizr-2.6.2.min.js')}}"></script>
if ("True" == "True")