4 ms·
Nice article; I do this often with small server-side rendered Deno projects. I haven't felt the need to upgrade to a "proper" templating library yet. I noticed
by toastercat 2y ago
Nice article; I do this often with small server-side rendered Deno projects. I haven't felt the need to upgrade to a "proper" templating library yet.
I noticed the article doesn't mention escaping HTML, which you probably should do if you're expecting user input. Fortunately, such a utility is included in Deno's standard library: https://jsr.io/@std/html/doc/~/escape https://jsr.io/@std/html/doc/~/escape
Similarly, for XSS, the `xss` package on npm works great for Deno.