Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Checkstyle For HTML Templates

by Corion (Pope)
on Oct 22, 2005 at 13:29 UTC ( #502206=note: print w/ replies, xml ) Need Help??


in reply to Checkstyle For HTML Templates

You mean, like html tidy (on Sourceforge and the original page, also on CPAN)? It doesn't work for HTML templates, but it works for the output generated by your templates. Well, actually, it works for a certain kind of HTML Templates, namely those used by Petal. If you're using a different templating system, you will need to check the output. But you want to do that anyway, as invalid input to your templates can generate invalid output.


Comment on Re: Checkstyle For HTML Templates
Re^2: Checkstyle For HTML Templates
by wfsp (Abbot) on Oct 22, 2005 at 14:59 UTC
    If you use HTML::Template you can use template tags in the form of HTML comments.

    <!-- TMPL_VAR NAME=PARAM1 -->

    This would allow you to validate the template.

      Well, not everything:

      <div class="<!-- TMPL_VAR NAME=PARAM2 -->">Test</div>

      Comment tags will validate as long as they are used outside of HTML tags.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-25 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls