By setting allow_url_include = On as you recommended I can get a test include to work just fine with my stream wrapper.
And any other stream wrapper including HTTP. Do you realize you just created a ...
Yet again: compiled template is a regular PHP code.
It is not read using file access functions, it is directly executed (see Smarty_Template_Compiled::loadCompiledTemplate).
Understood, thanks.
How would PHP then include files from this wrapper?
It is a stream wrapper registered with stream_wrapper_register() so any PHP code - including Smarty - would use the standard file access functions ...
Way back in the dim and distant past (see [url=https://www.smarty.net/forums/viewtopic.php?t=10812]this thread), there was a request to allow the compile directory to be moved to a stream.