This repo is a good example of using EJS to write extensions for quarto https://github.com/jmgirard/affcomlab/blob/main/ejs/article.ejs