zibri
    Preparing search index...

    Interface for an asset service.

    interface AssetServiceInterface {
        assetsPath: Path;
        assetsRoute: `/${string}`;
        attachTo: (app: ZibriApplication, ...params: any[]) => void | Promise<void>;
        buildFileTree: () => TreeNode[] | Promise<TreeNode[]>;
        componentTemplatePath: Path;
        emailTemplatePath: Path;
        pageTemplatePath: Path;
        publicAssetsPath: Path;
    }

    Implemented by

    Index

    Properties

    assetsPath: Path

    The path of the assets.

    assetsRoute: `/${string}`

    The route under which the file explorer with the public assets is registered.

    attachTo: (app: ZibriApplication, ...params: any[]) => void | Promise<void>

    Attaches the service to the application.

    buildFileTree: () => TreeNode[] | Promise<TreeNode[]>

    Builds a file tree.

    componentTemplatePath: Path

    The path of the component templates.

    emailTemplatePath: Path

    The path of the email templates.

    pageTemplatePath: Path

    The path of the page templates.

    publicAssetsPath: Path

    The path of the assets which are also publicly registered on the online file explorer.