So far I have tried adding the cdn like this which does not work:
@app.route('/')
def home():
cdn = 'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.1/gsap.min.js"'
return render_template('index.html', cdn = cdn)
Here what I want to do is write the js code in html using gsap cdn, however it's not working at all.
index.html:
<head>
<link src="{{ cdn }}" />
rest of the code..
</head>
<body>
<script>
import { gsap, interpolate } from "gsap";
import {ScrollTrigger} from 'gsap/ScrollTrigger';
rest of the code..
</script>
</body>