cancel
Showing results for 
Search instead for 
Did you mean: 

Client-silde Javascript within webscript's fremarker templat

krups
Champ in-the-making
Champ in-the-making
Hello

I have got my webscript which does have some client side javascript/jquery code.
I want to make it separate from freemarker template file.
Can anyone help me please?

Thanks
1 REPLY 1

scouil
Star Contributor
Star Contributor
If you want to keep your files together
<script type="text/javascript" >    <#include "../someJsInParentFolder.js" />    <#include "someJsInSameFolder.js" /></script>‍‍‍‍‍‍

If you want to hit the default /alfresco/scripts/ folder:
    <script type="text/javascript" src="/alfresco/scripts/myscript.js"></script> ‍‍‍

Good luck with your webscript!