A lightweight string replace engine for text-based templates