hi
i need to use silverstripe data in javascript file
simple example
<script>
alert($Title);
</script>
it works when these line of code are directly in the template file
page.ss
<html>
<head>
<script>
alert($Title);
</scirpt>
</head>
....
</html>
but when i separete this into javascirpt file and than inluding it doesnt work
alert.js
alert($Title);
page.ss
<html>
<head>
<script type="text/javascript" src="mysite/javascript/alert.js"></script>
</head>
....
</html>
it is quite strange :/ i dont want to put my javascript code into html file
how to solve this problem ?