Skip to content

Commit 2a0f152

Browse files
author
filt3rek
committed
Initial commit
1 parent 205ac8d commit 2a0f152

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ftk/format/Template.hx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,17 @@ class Template {
215215
}
216216
#end
217217

218-
// Compile-time templates
218+
// ************** Compile-time templates *****************
219219

220220
/* Manual build function
221-
* Usage : public function myFunction( arg1, arg2... ){
221+
* Usage :
222+
* ```haxe
223+
* public function myFunction( arg1, arg2... ){
222224
* var x = "foo";
223225
* ...
224226
* ftk.format.Template.buildFromFile( "my/path/to/templateFile" );
225227
* }
228+
* ```
226229
*
227230
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
228231
* Add `-D templatePos` to report error line related to generated expressions
@@ -361,7 +364,7 @@ class Template {
361364
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
362365
* Add `-D templatePos` to report error line related to generated expressions
363366
*
364-
* @:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );
367+
* `@:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );`
365368
*/
366369

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

0 commit comments

Comments
 (0)