PHP
template files are compiled from the Compiler
class.
However, the Resource compiler class Res
is integrated with helper static methods that makes it easier
to render template files internally through the Compiler
class.
These methods are discussed below:
Res::load()
method. An example of this
is shown below.
Res::load('some-template', fn() => compile());
self::load()
method. This is because the root source of
Window's self::load()
comes directly from the Res
Resource compiler class.