Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Unit Testing Generated HTML

by Aristotle (Chancellor)
on Jul 02, 2002 at 10:52 UTC ( #178815=note: print w/ replies, xml ) Need Help??


in reply to Unit Testing Generated HTML

++

Especially in the beginning of the project it's not unlikely that the data structures getting pulled into the production templates will change from time to time, if only minorly. If that happens frequently, one might further augment efficiency by building a tool that parses the production templates and spits out debug templates with raw interpolation directives. (Possibly with HTML-escaped surrounding tags if they just provide the content for a tag's attribute, eg for things like the following.) <img width="[% product.pic.x %]" height="[% product.pic.y %]" src="[% product.pic.url %]" alt="[% product.shortdesc %]"> ____________
Makeshifts last the longest.


Comment on Re: Unit Testing Generated HTML
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2014-09-22 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (205 votes), past polls