Dynamic content page
If a page is executable Pagegen will execute the file and use the output in the generated file. See man chmod for how to set files executable.
The output of the executable will not be filtered by Pagegen, so it is the executables responsibility to output valid HTML.
The following is a simple hello world example, in [site directory]/content create a new file called, for instance, 000_Hello world, and make it executable (e.g. chmod +x "000_Hello world".
#!/bin/bash echo "<h1>Hello world:)</h1>"
After generating the site, the page [site url]/hello_world will contain a Hello world title.
Last changed
2009-10-17 21:09



