Dynamic sitemap.xml generation

I would like to deploy my Ember-CLI blog soon. It will use prerender.io to cache static versions of my page. The backend runs with Sails.js.

How do you generate/serve sitemap.xml dynamically?

have you find any solution on this?

The same question. Is there a way to create sitemap.xml dynamically? How do you create sitemaps?