This morning I started to set up a site with templates saved as text files. I’m running into an issue where ExpressionEngine does not appear to recognize new template files until either the Template Manager is loaded in the Control Panel, or the templates are synchronized. I’m wondering if this is expected behavior, or if there’s something else going on here.
Let me give you an example.
If I have a template group named “hello-world” and within that group, “index.html” as a template, I can make changes to that template and they are reflected after refreshing the outputted page.
But if I were to go and create new template file (in my file system), say “test.html” in the hello-world.group directory, EE doesn’t appear to realize that’s a valid template until:
1) Loading the “Template Manager” page in the EE control panel — after loading this page and selecting the ‘hello-world’ template group, the newly created ‘test’ template appears in the list of templates, and EE renders hello-world/test as you would expect.
2) Synchronizing templates — after syncing the templates, the page renders as you would expect at hello-world/test.
I’ve checked permissions with what’s indicated in the docs, and they’re looking ok (777 on the template group directories).
So, is this expected behavior, a bug, or perhaps an environmental problem on my machine?