correctly pass data to the template
use precompiled templates