[erlang-questions] Adding file and line information to erl_syntax trees.
Mon Aug 21 11:57:15 CEST 2017
In Zotonic (the Erlang CMS) we are using template_compiler  to compile ErlyDTL templates to beam modules.
I would like to include filename and line positions from the original template files in the generated beam code.
This to ease debugging, especially in the case of crashes.
I am a bit at a loss how to best include this information into erl_syntax abstract trees.
Does anybody have an example how to include this information?
More information about the erlang-questions