Modifying main layout file

I would like to modify the main layout file in /public/views/index.html. I need to make dynamic changes to title element and do other simple changes server side.

I see there is an “if” statement that get parsed before the output… so I am hopeful it will be possible to make other changes server side to index.html… but how (e.g. what language or templating language)?

I’m thinking I could also use output filter such as Apache mod_ext_filter