Is SSI currently working with nodejs projects?

I've been fiddling with both alternatives and I think EJS seems like a good choice.

Not only you solve the SSI but you set the grounds for this:

(Pending AC integration if it's decided to be implemented). But at least it’s usable in code.

Using .ejs files will also seem more natural to people transitioning from PHP as you say.

Route to ejs file

app.get('/mypage', function (req, res) {
    res.render('pages/mypage');
});

Then inside mypage.ejs

<%- include ('partials/mypartial') %>

And bam SSI...plus templates...with layouts, pages and partials.

I just finished migrating my i18next SSI using ejs partials and it works out of the box.

3 Likes