trapcodeio / vite-plugin-ejs

Vite: Use Ejs in your entypoints i.e index.html
https://stackblitz.com/edit/vite-plugin-ejs
66 stars 5 forks source link

Is there a way to get my index.ejs to compile to index.ejs? #14

Open kajweb opened 10 months ago

kajweb commented 10 months ago

I am using koa to output index, and then I want to get a similar ejs file to be output by koa. Can you give me some advice?

image

Then, output this page through koa-views (server) image

The interface you ultimately want to render the code on the client image

ticlaudeberube commented 5 months ago

I have a similar need using Express. Actullay I am looking to use Vite instead of NodeMon. The site is a standard back-end app used for usability purposes, so an SPA is not possible. Content would need to be compiled.