documentation, add the externals to the templating function