http://qs321.pair.com?node_id=388874

csuhockey3 has asked for the wisdom of the Perl Monks concerning the following question:

Hey Monks,

Anybody ever seen syntax like this:

<?pp:var:someVarName_error?>

I found it in some legacy code I was given to update (just a large CGI). At first I thought it was just for error checking because there was a corresponding hash of error codes mapped to each of the form fields -- that was until I saw this:

<form method="post" ... action="<?PP:CGI-URL?>">

So my question is, what is that <?pp:...?> all about? Has anybody else seen it? Is it commonly used, and if so, where?

Thanks!

Replies are listed 'Best First'.
Re: unusual syntax
by etcshadow (Priest) on Sep 06, 2004 at 23:54 UTC
    It must be some sort of templating language... that is: the server parses the html and replaces anything like "<?pp:...?>" with the results of either executing some code or evaluating some expression or variable. I can't say that I actually know what template engine it is that uses that syntax, though.

    Ones that I am familiar with, though are often quite similar. Typical examples being things like "<? ... ?>", "<% ... %>", "<%= ... %>", "[- ... -]", "[+ ... +]", and so on and so on.

    What you should be looking for is which handler is being used to handle these pages. You can probably find that in your httpd.conf.

    ------------ :Wq Not an editor command: Wq