Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

unusual syntax

by csuhockey3 (Curate)
on Sep 06, 2004 at 22:56 UTC ( #388874=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://388874]
Approved by Errto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2021-01-22 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?