I provision custom page layout through elements.xml
I want to add a javascript file to that page to be used by some webparts put on that page through elements.xml as well.
In my custom page layout i add
<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">
<script src="/SiteAssets/SomeScript.js"></script>
</asp:ContentPlaceHolder>
which works fine. But i want this code to be site url independent, meaning this needs to work on any site collection either with managed path or not. How can i inject ~site token into script tag?