Perl: Alternatives to template toolkit

后端 未结 5 900
梦毁少年i
梦毁少年i 2021-01-30 18:25

I have been using template toolkit for extending an existing domain specific language(verilog) for over 3 years now. While overall I am happy with it, the major irritant is that

5条回答
  •  生来不讨喜
    2021-01-30 19:12

    I'm currently experimenting with Template::Alloy and it seems to be, by and large, a drop-in replacement for TT. Template::Alloy::TT lists the differences between TT and Alloy, most of which are of the form "This works/is allowed in Alloy, but not in TT." Addressing your specific issue, the list includes:

    • Alloy has better line information

    When debug dirs is on, directives on different lines separated by colons show the line they are on rather than a general line range.

    Parse errors actually know what line and character they occured at.

提交回复
热议问题