Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
filt3rek committed May 4, 2021
1 parent 205ac8d commit 2a0f152
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ftk/format/Template.hx
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,17 @@ class Template {
}
#end

// Compile-time templates
// ************** Compile-time templates *****************

/* Manual build function
* Usage : public function myFunction( arg1, arg2... ){
* Usage :
* ```haxe
* public function myFunction( arg1, arg2... ){
* var x = "foo";
* ...
* ftk.format.Template.buildFromFile( "my/path/to/templateFile" );
* }
* ```
*
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
* Add `-D templatePos` to report error line related to generated expressions
Expand Down Expand Up @@ -361,7 +364,7 @@ class Template {
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
* Add `-D templatePos` to report error line related to generated expressions
*
* @:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );
* `@:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );`
*/

public static function buildTemplates( ?stringInterpolationToken : String, ?templateMeta : String ){
Expand Down

0 comments on commit 2a0f152

Please sign in to comment.