Let's say I have a partial template post.html:
<h2>{{ post.title }}</h2>
<p>{{ post.content }}</p>
<script src='myscript.js'></script>
And a regular template posts.html:
<h1>Posts</h1>
{% for post in posts %}
{% include "partials/post.html" %}
{% endfor %}
Should I reference the script from every template I want to use the partial from instead of from the partial itself? Or is there a better way to prevent the script tag from being duplicated?