File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -215,14 +215,17 @@ class Template {
215
215
}
216
216
#end
217
217
218
- // Compile-time templates
218
+ // ************** Compile-time templates *****************
219
219
220
220
/* Manual build function
221
- * Usage : public function myFunction( arg1, arg2... ){
221
+ * Usage :
222
+ * ```haxe
223
+ * public function myFunction( arg1, arg2... ){
222
224
* var x = "foo";
223
225
* ...
224
226
* ftk.format.Template.buildFromFile( "my/path/to/templateFile" );
225
227
* }
228
+ * ```
226
229
*
227
230
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
228
231
* Add `-D templatePos` to report error line related to generated expressions
@@ -361,7 +364,7 @@ class Template {
361
364
* Add `-D hscriptPos` to report error line related to hscript interpreter/macro exprs generator (synthax errors)
362
365
* Add `-D templatePos` to report error line related to generated expressions
363
366
*
364
- * @:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );
367
+ * ` @:template( "my/path/to/templateFile" ) public function myFunction( arg1, arg2... );`
365
368
*/
366
369
367
370
public static function buildTemplates ( ? stringInterpolationToken : String , ? templateMeta : String ){
You can’t perform that action at this time.
0 commit comments