Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Unit Testing Generated HTML

by Aristotle (Chancellor)
on Jul 02, 2002 at 10:52 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2025-01-19 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (57 votes). Check out past polls.