It took me a while to figure out what causes wireRenderFile() to fail processing its second (optional) parameter in ProcessWire 3.0.3, but finally I could pass those variables to the template file by using the "Yes (template file only)" option of "Use Compiled File?" setting in the admin panel.
The default setting is "Yes (and included files)", but with this setting selected, wireRenderFile() cannot receive its optional array parameters. Is it a bug or a feature?
I also tried to switch to "No", but this option cannot be saved, after saving the template it switches back to "Yes (and included files)". Again, bug or feature?
All my template files begin with <?php namespace ProcessWire; so in this case is this automatic namespace updating necessary at all?
I don't know how this compiling thingy works, so I do not know what the right answer to this "Use Compiled File?" question should be.
Is it ok to use "Yes (and included files)"?
Or should I use "No" (if it was possible)?
Or "Yes (and includes files)" which renders wireRenderFile() sort of useless?
Any help is appreciated!