Just tried this. It didn't work as it only affects the template when it's compiled, and like I said, the content will be dynamic so I need to run it in an output filter.
I am running an output filter which retrieves the name of the template to be displayed and loads another file based on that name. The loaded file contains an array to be displayed in the templa ...