Book Image

haXe 2 Beginner's Guide

5 (1)
Book Image

haXe 2 Beginner's Guide

5 (1)

Overview of this book

Table of Contents (21 chapters)
haxe 2
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we've been talking about the haXe's standard templating system. As we've seen, it's not difficult to use and allows one to do quite a lot of interesting things such as easily generating an HTML page or generating other kind of text-files such as XML files (and even any kind of interface that uses XML as a describing language).

Specifically, we covered how to instantiate templates and give a context to them. We've also learnt how to do testing and branching in templates and calling code from them.

This chapter, although quite simple, exposes important information that you will certainly use many times while developing applications.

Also, remember that you cannot access an object's property using a template. This is a very important limitation of haxe.Template.

Now that we've learned about templates we're ready to learn about how to interface haXe with the platform you're targeting.