document template directives