Historically, we relied on each template to dynamically load scripts and css files for each view into the template if a file existed. This required the template to write the code to check for the existence of those files in their templates.
There should be a few helper functions to perform this check and return a preformatted string to include directly in the template.