One of the things I'm toying with is building the pages with .php extension and using PHP to customise. I love LinkSQL for its ability to build static pages and a great keyword dense directory structure and I can then add various other plugins using PHP if I want by just changing the build HTML extensions.