Prev | Current Page 516 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

execute({
image: {
uri : ???images/logo.png??™,
alt : ???image description??™,
link: ???http://www.example.com/??™
},
names: [
???George Washington???,
???John Adams???,
???Thomas Jefferson???,
???James Madison???,
???James Monroe???,
???John Quincy Adams???
]
});
neko.Lib.print(r);
}
}
Compiling Templates Manually
As already discussed, when the Loader.OPTIMIZED static variable is set to true, the Templo system will
not automatically compile the templates and it will expect that the compiled are already available in the
Loader.TMP_DIR . To compile the template manually, you need to use the temploc executable that
accepts the parameters described in Table 10 - 2 .
Table 10-2
Parameter Description
-o /destination/directory Specifies the directory in which the template files will be compiled.
-m macrofile.xml Specifies the name of the file that contains the macro definitions.
The macro file must reside in the same folder or a subfolder
of the templates.
-r /templates/directory Specifies the directory containing the templates.


Pages:
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528