Resource - Template Files

Primary 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:

Resource Load
Resource Loading is done through the Res::load() method. An example of this is shown below.
  Res::load('some-template', fn() => compile());
The pattern above is similar to the Windows' self::load() method. This is because the root source of Window's self::load() comes directly from the Res Resource compiler class.
For other examples of how to use resource to compile template files, visit the Window's template documentation here or visit the documentation provided on Resource class.