Prev | Current Page 500 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

This setting is usually set to true once
all the templates have been successfully compiled and the application is moved to a production
environment.
Loader.OPTIMIZED = false;
The default extension for templates is .mtt , but it is also possible to use the .html and .tpl extension.
Any other template extension will work too, but if this is the case, some of the (X)HTML - specific features
will be disabled. So to resume what has been illustrated so far in a complete example, the following code
is put inside the file template.mtt in the templates directory.
< ?xml version=???1.0??? encoding=???iso-8859-1??? ? >
< !DOCTYPE html PUBLIC ???-//W3C//DTD XHTML 1.0 Strict//EN???
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd??? >
< html xmlns=???http://www.w3.org/1999/xhtml??? xml:lang=???en??? lang=???en??? >
< head >
< title > ::name:: Profile < /title >
< meta http-equiv=???Content-Type??? content=???text/html; charset=UTF-8??? / >
< /head >
< body >
< h1 > ::name:: < /h1 >
< ul > ::foreach item emails::
< li >
::item.


Pages:
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512