filename[filename]+ Specifies one or more space-separated names of template files.
Chapter 10: Separating Design Using Templates
269
Summary
As you can see, using templates is not that hard and they can really make your day saving a lot of awful
string concatenation and cleaning up a lot of messy code. In this chapter, the following topics were
covered:
What a template system is
How it is implemented in haXe
How to use placeholders and add some logic to templates
How to use macros and callbacks
What resources are used to store templates
How to replace haxe.Template with Templo
The next chapter illustrates some of the magic of programming with haXe and Neko on the server side
and how to get the best results.
??‘
??‘
??‘
??‘
??‘
??‘
Performing Server - Side
Trickery
We have a cumulative experience of over twenty years developing with JavaScript and Flash
ActionScript, and many of those years have been spent developing with the commercial tools
provided by Macromedia (now Adobe). Since discovering the MTASC compiler for ActionScript
development, and now the haXe compiler, we have marveled and pondered at just how much time
we have spent dealing with these two languages within the confines of the development tools we
had to handle, and wonder how much more could have been achieved had haXe been around
during our entire development career.
Pages:
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529