Template preprocessor for Broccoli