Documentation for Guide template language has an example of how to call a function, but nothing on how to define a new function. Any advice on this?
Tried:
Defining in a server-side JS block
<script runat="server">
var Something = function(){
return "FOO!";
}
</script>
<p>{{=Something()}}</p>
But breaks the page. If you have to ask for error codes, you haven't worked with this tool yet: the error reporting is even more useless than the documentation.
function Something() {...}
instead?{{=Something() { return "Foo!";} }}