Template controller / resolver (incomplete)