document template usage