Micro template pre-compiler