hml 0.0.3

Haxe macro-based mxml replacement

Released 2017-02-26.

To install, run:

haxelib install hml 0.0.3

See using Haxelib in Haxelib documentation for more information.

Maintainerdeep
Websitehttps://github.com/profelis/hml
Current version0.0.3
StatisticsInstalled 83 times
LicenseMIT
Tags cross, mxml, ui

README.md

## hml

Build Status

===

Magic namespace xmlns:haxe="http://haxe.org/"

Root node children

TagDescriptionExample
<Implements>List of interfaces<haxe:Implements><![CDATA[foo.IBar]]></haxe:Implements>
<Declarations> or <Public>List of public declarations<haxe:Declarations><ui:String id="string2">"ab"</ui:String></haxe:Declarations>
<Private>List of private declarations<haxe:Private><ui:String id="privateString">'text in private string'</ui:String></haxe:Private>
<Script>Haxe script block<haxe:Script><![CDATA[import flash.display.Sprite;]]></haxe:Script>

All tags

TagDescriptionExample
<Meta>Metadata<haxe:Meta><![CDATA[@FooMeta]]></haxe:Meta>
<Generic>Type Parameters<haxe:Generic><![CDATA[foo.IBar]]></haxe:Generic>

Extra attributes

AttributeDescriptionExample
ifConditional Compilation<Button text="show debug" haxe:if="debug" />

Chaining

<Text format.size="20" />

Binding (use bindx2)

<Text text="@b model.name" />