Conversation
|
What arguments were passed to erlydtl in this case? The only path I can see that results in We could add this case to not crash, but I suspect that the resulting template is not what you want, so that would actually only hide the real issue here. I would like you to render the resulting template you get with this fix and tell me if you get what you expected. I've been considering to update the erlydtl api so you can say if the argument indeed is a file or a verbatim template, instead of looking only for binary vs. list, which is rather silly. This relates to rebar/rebar#221. |
|
Uhm, not sure what's a binary template. Currently the erlydtl_opts in rebar.config is The rendered template looks normal. |
|
Sooooo... Is this ever getting merged? |
|
Sorry, my bad. There is a good path leading to This fix gets 👍 from me :) |
|
Ah, then again. Take a look at rebar_elrlydtl_compiler.erl from rebar/rebar. There are more changes to adapt to recent erlydtl changes. See rebar/rebar#210 and rebar/rebar#221. With those changes applied, this fix is not needed. Ps. |
|
Perhaps close this.. ? |
Currently erlydtl 0.8+ compilation is broken and raises the following errors:
With this simple pull request you can compile erlydtl templates again.