Add notes to declarative template logic