This provides a Helix Server pre-commit (change-content) trigger that validates web fles upon attempted submit, and rejects those that fail validation.
Validation of web content is done using tidy HTML Tidy.
This is installed with a Perforce Triggers table entry like the following:
<PRE>
</PRE>
Files with .html and .inc extensions are considered web files.
Dependencies:
It is recommend this be deployed along with the Perforce Server Deployment Package, though there is no hard dependency.
Install the bash shell script on your server, and confiure a Triggers table entry to call it, as per the example above.