Haxe takes some templates to bin
folder when it compiles. It process templates, replacing variables in it ::WIN_WIDTH::
with values 640
. It can also take your custom templates like so:
<template path="your/template.txt" rename="tmpl.txt"/>
I would like to know is there any way to place your own variables ::myvar::
in those templates?
EDIT
http://old.haxe.org/doc/cross/template - Unfortunately, that article only explains how to execute haxe.Template
class instances. In the end you will get the string (your processed template).
What I want is to add my custom placeholders to default haxe templates, such as OpenFL Android project templates. I need Haxe to process it's templates WITH my own placeholders and outputs it in the bin
folder, as usually does.