<?php // An example of the tplDoc class usage require( "./class.tplDoc.php" ); $myDoc = new tplDoc( ); // Adding all tpl files from templates directory $myDoc->Add( "tpl", "templates" ); // Sorting alphabetically $myDoc->Sort(); // // Print the doc in html/txt format echo $myDoc->PrintOut( "html" ); // echo $myDoc->PrintOut( "txt" ); ?>