| ▲ | patates 8 hours ago | |
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. | ||