trapcodeio / vite-plugin-ejs

Vite: Use Ejs in your entypoints i.e index.html

Home Page:https://stackblitz.com/edit/vite-plugin-ejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kajweb opened this issue · comments

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

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.