Publish Template Pages

I'd like to add a web services script that publishes Cascade Server pages based on template affiliation rather than folder location.

I've been testing this on Cascade Server 7.8.

The files and sub folder are in:
/Cascade-Web-Services-Examples/php/wing-ming-chan-library/*

Use Case: http://help.hannonhill.com/discussions/how-do-i/14302-publish-all-template-relationships