Hacker News new | ask | show | jobs
by mcovey 4907 days ago
this is exactly how many modern frameworks do it. your response body is assembled and cached as your application executes, along with any variables it needs, and before the template is rendered the variables are sanitized.