Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.

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 browsing the Monastery: (6)
As of 2016-07-01 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (410 votes). Check out past polls.