Alabhya Jindal

<template>

I have been very curious about ways to make websites without using a frontend library.

But not using a library quickly gets out of hand. My current project is a Sinatra application that serves HTML with linked JavaScript files. The codebase is currently littered with many calls to document.createElement.

I just found out about The Content Template Element. The idea is to have dynamic parts of HTML already written in the markup, which can be referenced in JS and inserted later. This however, only works for truly client side interactions and won’t work when interacting with an external service.

Hmmmm.