开发者

OPA syntax question

开发者 https://www.devze.com 2023-03-17 11:37 出处:网络
I have seen in the stdlib and in some github project. 开发者_如何学JAVACode like that : MyClass =

I have seen in the stdlib and in some github project. 开发者_如何学JAVACode like that :

MyClass =

  field_id(id) = "{id}_field"

{{

my_func(args) = output

}}

What the interest to have function before the {{ }} block ??


It declares the function as private to the module. Equivalent to:

MyClass = {{

  @private
  field_id(id) = "{id}_field"

  my_func(args) = output

}}
0

精彩评论

暂无评论...
验证码 换一张
取 消