-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
185 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": "651ecf3", | ||
"version": "779b005", | ||
"resolveLibs": "scoped" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# @install: lix --silent download "haxelib:/tokentree#1.1.2" into tokentree/1.1.2/haxelib | ||
-cp ${HAXE_LIBCACHE}/tokentree/1.1.2/haxelib/src | ||
-D tokentree=1.1.2 | ||
# @install: lix --silent download "haxelib:/tokentree#1.2.0" into tokentree/1.2.0/haxelib | ||
-cp ${HAXE_LIBCACHE}/tokentree/1.2.0/haxelib/src | ||
-D tokentree=1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{} | ||
|
||
--- | ||
|
||
function inline_markup() { | ||
<xml a=// </xml> | ||
|
||
static var SRC = | ||
<obj class="foo" padding-left={value} color="blue"> | ||
@exampleText("!") | ||
<custom(55) public id="sub" custom-color="#ff0 0.5" active/> | ||
<custom(66) if( anotherCustom )/> | ||
</obj>; | ||
|
||
super (<xml />); | ||
super (<xml><xml /></xml>); | ||
|
||
<xml></xml>; | ||
<xml ></xml>; | ||
<xml > </xml>; | ||
|
||
<div some="attributes"/>; | ||
<foo>$${x < foo ? "a" : "b"}</foo>; | ||
|
||
<xml><xml></xml></xml>; | ||
<xml><yml></xml>; | ||
|
||
<xml/>; | ||
<xml abc />; | ||
|
||
static var SRC = <syntax-test> | ||
for( x in arr ) | ||
<custom(x)/> | ||
for( y in arr ) { | ||
<custom(y)/> | ||
<custom(y)/> | ||
} | ||
</syntax-test> | ||
} | ||
|
||
--- | ||
|
||
function inline_markup() { | ||
<xml a=// </xml> | ||
|
||
static var SRC = <obj class="foo" padding-left={value} color="blue"> | ||
@exampleText("!") | ||
<custom(55) public id="sub" custom-color="#ff0 0.5" active/> | ||
<custom(66) if( anotherCustom )/> | ||
</obj>; | ||
|
||
super(<xml />); | ||
super(<xml><xml /></xml>); | ||
|
||
<xml></xml>; | ||
<xml ></xml>; | ||
<xml > </xml>; | ||
|
||
<div some="attributes"/>; | ||
<foo>$${x < foo ? "a" : "b"}</foo>; | ||
|
||
<xml><xml></xml></xml>; | ||
<xml><yml></xml>; | ||
|
||
<xml/>; | ||
<xml abc />; | ||
|
||
static var SRC = <syntax-test> | ||
for( x in arr ) | ||
<custom(x)/> | ||
for( y in arr ) { | ||
<custom(y)/> | ||
<custom(y)/> | ||
} | ||
</syntax-test> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"indentation": { | ||
"character": " " | ||
}, | ||
"sameLine": { | ||
"ifBody": "keep", | ||
"elseIf": "keep", | ||
"elseBody": "keep", | ||
"forBody": "keep", | ||
"whileBody": "keep" | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Test { | ||
function main() { | ||
final user = "usr"; | ||
|
||
XmlTools.toString( | ||
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:foo="https://foo.bar/baz"> | ||
<soap:Header> | ||
<foo:Foo> | ||
<foo:User>${user}</foo:User> | ||
</foo:Foo> | ||
</soap:Header> | ||
<soap:Body> | ||
</soap:Body> | ||
</soap:Envelope> | ||
); | ||
} | ||
} | ||
|
||
--- | ||
|
||
class Test { | ||
function main() { | ||
final user = "usr"; | ||
|
||
XmlTools.toString(<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:foo="https://foo.bar/baz"> | ||
<soap:Header> | ||
<foo:Foo> | ||
<foo:User>${user}</foo:User> | ||
</foo:Foo> | ||
</soap:Header> | ||
<soap:Body> | ||
</soap:Body> | ||
</soap:Envelope>); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{} | ||
|
||
--- | ||
|
||
// https://heaps.io/documentation/domkit.html | ||
class SampleView extends h2d.Flow implements h2d.domkit.Object { | ||
|
||
static var SRC = | ||
<sample-view layout="vertical"> | ||
Hello World! | ||
<bitmap src={tile} public id="mybmp"/> | ||
</sample-view> | ||
|
||
public function new(tile:h2d.Tile,?parent) { | ||
super(parent); | ||
initComponent(); | ||
} | ||
} | ||
|
||
--- | ||
|
||
// https://heaps.io/documentation/domkit.html | ||
class SampleView extends h2d.Flow implements h2d.domkit.Object { | ||
static var SRC = <sample-view layout="vertical"> | ||
Hello World! | ||
<bitmap src={tile} public id="mybmp"/> | ||
</sample-view> | ||
|
||
public function new(tile:h2d.Tile, ?parent) { | ||
super(parent); | ||
initComponent(); | ||
} | ||
} |