Skip to content

Comment on A small collection of text-only websites

Comments

In some web apps I code, I just serialize the view-model when the page is called with a ".json" or ".yaml" at the end. It forces you to be strict about not leaking private/complex data into the views and makes power-users' life much easier.

".txt" is also a good idea for content-heavy pages. Maybe ".md" too? I may try.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.