denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.18k stars 623 forks source link

using nunjucks with Fresh #2335

Closed tgy closed 6 months ago

tgy commented 6 months ago

hello! trying to use nunjucks to generate html within Deno Fresh.

i created a ./views folder at the root of my project. it contains html templates.

however, when i build the site, this ./views folder is not moved to the _fresh build folder

therefore, nunjucks does not find my templates at runtime

what is the right way to solve this?

thanks for any help!

p.s. i don't really want to expose my views in the static folder, since this is leaking information about the code to the user

marvinhagemeister commented 6 months ago

I'd like to understand your setup better. Why does the ./views folder need to be in _fresh? Why is nunjucks looking for it there?

marvinhagemeister commented 6 months ago

Closing as we haven't heard back.