OK, this is pretty basic question, but I cannot figure this out... What is the correct way to call functions from modules? The way I do it is:
main.opa:
function start(){
Page.page();
}
Server.start(
Server.http,
[
{title: "Calculator", page: start}
]
);
Where in the other, page.opa file I have:
module Page {
function page(){
<p>Consider this as html block...</p>
}
}
Now, the error I get is that Page variable is unbound (it's not a variable at all!). Both files are in the same location.