3

我需要调试一些如下所示的代码。但是,我不知道它是什么语言。它似乎是 perl 和 html 的组合。有人可以让我知道这到底是什么,以便我可以做未来的研究吗?

//All in the same file
<%doc>
    # Something
    # Something
</%doc>

<%args>
    $id => undef
    $debug => undef
    $other => under
</%args>

<%perl>
   Code that appears to be perl code
</%perl>

<!DOCTYPE html>
    <html>
        HTML that also appears to have code (maybe perl code) inside <%these types of %> brackets
        as well as <& these types &>
    </html>

有人可以解释一下这到底是什么。是perl,还是html?还是两者的某种结合?如果是后者,这是您从 HTML 中引用 perl 代码的方式: <% foo %> <& bar &>

很抱歉这个令人困惑的问题。我很乐意提供更多细节。

4

1 回答 1

12

它似乎是HTML::Mason的模板。

于 2013-06-24T23:41:32.407 回答