use formatter to handle page templates as well