compiletime

Simple Haxe Macro Helpers that let you do or get things at compile-time.
https://github.com/jasononeil/compiletime

Version Release Notes Install Downloads
2.7.0
1 year ago
Fix package matching (See issue #8). Allow typedef of TInst in getAllClasses(). Added git sha embedding. Re-engineer CompileTime.getAllClasses() to compile faster. Thanks to @kevinresol, @dionjwa and @chipshort for pull requests and bug reports. haxelib install compiletime 2.7.0 16288
2.6.0
2 years ago
Add `CompileTime.parseYamlFile()` if compiled with the `yaml` haxelib haxelib install compiletime 2.6.0 17837
2.5.1
3 years ago
Fix to type signiature for CompileTime.getAllClasses()` haxelib install compiletime 2.5.1 3211
2.5.0
4 years ago
Add `var html:String = CompileTime.readMarkdownFile(test.md);` haxelib install compiletime 2.5.0 376
2.4.1
4 years ago
Bug fix: When CompileTime.getAllClasses() does not match any classes, return an empty list, not a list with a `null` item. haxelib install compiletime 2.4.1 97
2.4.0
4 years ago
When getting classes that match a base class or interface, return a typed list. haxelib install compiletime 2.4.0 60
2.3.0
4 years ago
Allow getting classes that implement a certain interface. Also add files loaded via macros to `Context.registerModuleDependency` so they are watched by the compiler cache. haxelib install compiletime 2.3.0 2
2.2.1
4 years ago
Fix for flash target. haxelib install compiletime 2.2.1 216
2.2.0
4 years ago
Added CompileTime.interpolateFile('someFile.txt'), that is the same as using single quote string interpolation. It's a poor man's templating engine. haxelib install compiletime 2.2.0 209
2.1.1
4 years ago
Minor bug fix release. haxelib install compiletime 2.1.1 31
2.1.0
5 years ago
Added `readJsonFile` and `parseJsonFile`. readJsonFile file loads it as a String, but validates that it is valid Json. parseJsonFile parses it into an object, and checks that the type of the resulting object is correct with what you are requesting. haxelib install compiletime 2.1.0 43
2.0.0
5 years ago
Version bump for haxe3 compatibility. Breaks compatibility with Haxe2 probably haxelib install compiletime 2.0.0 9

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github