Fill out some basic template expansion logic