Hi
I want to iterate over a list of records with a for loop.
A nice feature could be to use exprecs to create a callback module for
a record.
https://github.com/esl/parse_trans/blob/master/doc/exprecs.md
erlydtl will get the record name from the first element of the tuple
and use a module with the same name to get attributes.
myrecord:'#get-'(Attr, Rec)
Another interesting feature is to define a field value that will allow
to dynamically load children of a record.
For example, the following will load children of group_product with id
15:
{group_product, {"my-group-product", 15, 100, {#load, children, 15}}
Can I make the existing 'for' tag work with records or do I need to
create a custom tag?
Are there docs on how to write custom tags?
Thanks