basic template setup; rendering; variables