Skip to content

Conversation

@Abdel-Monaam-Aouini
Copy link
Contributor

@Abdel-Monaam-Aouini Abdel-Monaam-Aouini commented Feb 1, 2026

Summary

  • Add app.renderAsync(name, options) method that returns a Promise instead of using callbacks
  • Enables async/await usage for view rendering

Usage

// Before (callback)
app.render('email', { name: 'Tobi' }, (err, html) => {
  if (err) return next(err);
  res.send(html);
});

// After (async/await)
const html = await app.renderAsync('email', { name: 'Tobi' });
res.send(html);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant