HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Template #74

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Template - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/std-template.html

felipevex commented 3 years ago

You can access the current context value of the foreach using the special variable __current__, especially useful when iterating over nested containers:

::foreach rows::
    ::foreach __current__::
    ::end::
::end::

from http://old.haxe.org/doc/cross/template

hamsbrar commented 1 year ago

Annotate macro functions with @:keep to prevent them from being removed during DCE.