Port document template to the new API