Pre rendering of templates