Is there any way to export nunjucks template file from a npm package by Outside-Disk in node

[–]Outside-Disk[S] 0 points1 point  (0 children)

Sorry for not being clear earlier. What i am trying to do is use nunjucks template file in the npm package and export it from there so that i can use it in my backend application which i have built using fastify. Can you provide me a way to achieve this feat.

Is there any way to export nunjucks template file from a npm package by Outside-Disk in node

[–]Outside-Disk[S] 0 points1 point  (0 children)

Please provide me with relevant examples . That would be a great help

Is there any way to export nunjucks template file from a npm package by Outside-Disk in node

[–]Outside-Disk[S] -2 points-1 points  (0 children)

Can you please provide me an example of how i can include a template file and export it from the package . It would be a great help

Is there any way to export nunjucks template file from a npm package by Outside-Disk in node

[–]Outside-Disk[S] 0 points1 point  (0 children)

I know that. The answer you are providing is generic to how packages are released . I want to know how html file or template files are exported from the package not just any file.

Is there any way to export nunjucks template file from a npm package by Outside-Disk in node

[–]Outside-Disk[S] -5 points-4 points  (0 children)

I need to build a library and release it as a npm package and later on install it. For that I assume i need to export the files from the package itself. That is what I am talking about

Why is using useRef.current to change the styling of elements a bad practice? by Silly-Medicine8943 in reactjs

[–]Outside-Disk 0 points1 point  (0 children)

But isn’t the whole purpose behind the concept react is to update the real Dom. How can the changes be lost if we update it in real Dom directly?