So it looks like most CMS uses templates, like WordPress or ghost or all other CMS uses templates. But we can still see some flat file CMS on the market. So what's the difference between them?
Is flat file CMS really serves content faster? Or is it simply because it's better to serve through CDN? Since you can think rendering template as combine data with a template. So unless you're data is saved as markdown, isn't it just as simple as joining strings (if we put loops in template aside)?
Or the loop is the main reason we use templates instead of flat file? Since the file size shouldn't matter at all on modern servers where you got up to 10GB of storage for the most basic plan.
Last will the connection and queries between databases really make difference on response speed?
So why should we use templates instead of flat file, or vice versa?