use inline templates to make less http request