now() + ??? < /b >
< /body >
< /html >
???;
neko.Lib.print(content);
}
}
The function body does two simple things: It stores the content of the page that has to be visualized
in the variable content , and it prints the variable content using the neko.Lib.print method. In a
Neko web application context, printing means sending the content to the agent that requested it.
236
Part II: Server Side, JavaScript, and Flash; Oh My!
In the project directory, the file HelloWorld.hxml is added. It is a compilation file and will transform
the source code into a compiled unit. The content of the file is:
-cp src
-neko web/hello.n
-main HelloWorld
The Class Path switch ( - cp ) is required because the code is not directly contained in the project directory
but it can be found in the relative path src . The - neko switch tells the compiler to use Neko as the
compilation target and to put the compiled result in the hello.n file inside the web directory. Finally the
- main switch gives an indication that the HelloWorld class contains the main function that is the entry
point of the application.
Pages:
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468