I don't know about the complexity of your task, but you could revert to writing your own small templating engine using a regex to replace occurences of tags in your templates with data from your scripts. Combined with a simple caching algorithm it might become quite a fast and lightweight solution.