GenphpGenphp is a tool that permits to separate structure and content of a collection of documents (tipically website pages), creating common templates and content files that are then merged into the final documents. The great advantage of Genphp it's that all your documents are created and updated with one command. It's also possible to insert inside template e content files PHP code that must be executed once just after the merge. Finally common phrases can be collected in a glossary file (key-value pairs) and automatically inserted in the final documents in place of the relative keys. DownloadThe latest version of Genphp is 0.4, which corrects some minor bugs. DocumentationExample: Template file (genphp/templates/template.html):
<html>
Content file (genphp/content/index.content):
<!-- BEGIN title -->
Glossary file (genphp/glossary):
author Nicola Soranzo
Now execute from a shell the genphp script:
# cd genphp
Output file (genphp/www/index.html):
<html>
Every Content, template and output directories are configurable, and so are the glossary file and content and default output file extensions. Moreover, in every content file you can specify a different template and output file extension. ConctatFor any question or suggestion, you can contact the author Nicola Soranzo. |