add helper for compile template by id