What was bagcheck's logic less tempaltes
At Bagcheck, we were really into separating the front-end from the back-end, and logic-less templates were a key part of how we did that. We used Mustache as our templating framework, which let me have an HTML file where I could swap in either local data or live data when it got pushed to production.
The practical benefit was speed. I could do a whole bunch of iteration on how things actually worked very quickly, just using HTML with a little bit of Mustache. So the template itself had no programming logic in it — it was basically just HTML with placeholders for data. Something like this:
The data that got fed in would look like a JSON structure with fields like "bagname", "bagimage", "bagurl", and stats like number of items, updates, and comments.
This separation was especially useful for our multi-device approach. We could have different template files for different contexts — like separate mobile header/footer templates and desktop header/footer templates — but they'd all pull from the same underlying data and API. So the navigation components, for instance, could look completely different on mobile vs. desktop while sharing the same back-end.
The whole philosophy at Bagcheck was to learn as fast as possible, and logic-less templates were a big enabler of that. When you're a startup and you don't know anything yet — who your customer is, what features matter — the most important thing is getting good at learning. Being able to quickly iterate on the front-end without touching back-end code made a real difference in how fast we could move.