Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
the tag doesn't visually stand out against a page full of template HTML

I write my html in lowercase and my TMPL code in upper case. Stands out a mile, e.g.
<h3><TMPL_VAR HEADER></h3> <h4>please log in:</h4> <form action="input.pl" method="POST" name="mainform"> <input type=hidden name="Action" value=" <TMPL_VAR FUNCTION>"> user name: <input type=text width=30 name="UserName" value="<TMPL_ +VAR USER_NAME>"><BR> pass word: <input type=password width=30 name="PassWord" value="<T +MPL_VAR PASS_WORD>"><br> <TMPL_IF LOG_IN> <h4>if you don't have a user name, then you'll need to <a href="in +put.pl?Action=StartRegister">register</a><br>and if you've forgotten +your user name or pass word, <a href="mailto:<TMPL_VAR EMAIL>">email +me</a></h4> </TMPL_IF> <TMPL_IF REGISTER> security code: <input type=text width=30 name="SecCode" value="<TM +PL_VAR SEC_CODE>"><BR> if you don't know the security code, chances are you didn't get an + email from me inviting you to be here... if you'd like one, please < +a href="mailto: <TMPL_VAR EMAIL>">email me</a> </TMPL_IF>
Having said that, I have some sympathy with your aesthetic reservations about >>! But seriously, I'd like to add my voice to those that say HTML::Template pretty much fits the spec you laid out. Certainly as I've found more and more imaginative ways of configuring the param() method, I've found there's no structure I want to use that it can't handle with ease. And the bonus is, it lets me do the complicated stuff in regular perl, not some strange module dialect.

§ George Sherston

In reply to Re: Re: Re: I am about to write my very own templating module.. by George_Sherston
in thread I am about to write my very own templating module.. by Aristotle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-16 17:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found