I tried to add the following line to my Main Layout template:
#include("/confluence/includes/test-include.txt")
I checked that the file exists, that the path is correct, and that the contents are innocuous, but I still get the error:
Error occurred during template rendering: Cannot process content resource. Contact your administrator for assistance.
Any ideas?