Declarative template logic initial commit