Skip to main content

Loader

This class extends the filesystem loader to specifically handle template discovery within application directories. It provides a mechanism to retrieve directory paths by targeting a standard templates subdirectory across all registered applications.

Constructor

Signature

def Loader() - > null

Methods


get_dirs()

@classmethod
def get_dirs() - > tuple

Retrieves the list of absolute paths to template directories within all installed applications. This method is used to locate template files stored in the 'templates' subdirectory of each app.

Returns

TypeDescription
tupleA tuple of absolute directory paths containing application-specific templates.