micro template compiler for locator