Mandarine.MandarineCore.ITemplatesManager
import type { Mandarine } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts";
const { ITemplatesManager } = Mandarine.MandarineCore;
Refers to the templates' registry. All the templates that are read and initialized at mandarine compile time are registed inside the templates registry When an user requests a renderable endpoint, the templates' registry will get requested in order to get the template.
interface ITemplatesManager {
getFullPath(templatePath: string): string;
getTemplate(
templatePath: Mandarine.MandarineMVC.TemplateEngine.Decorators.RenderData,
customPath?: boolean,
manual?: boolean,
): Mandarine.MandarineMVC.TemplateEngine.Template | undefined;initializeTemplates(): void;
register(renderData: Mandarine.MandarineMVC.TemplateEngine.Decorators.RenderData, engine?: Mandarine.MandarineMVC.TemplateEngine.Engines): void;
}§Methods
§
getTemplate(
[src]templatePath: Mandarine.MandarineMVC.TemplateEngine.Decorators.RenderData,
customPath?: boolean,
manual?: boolean,
): Mandarine.MandarineMVC.TemplateEngine.Template | undefined§
register(renderData: Mandarine.MandarineMVC.TemplateEngine.Decorators.RenderData, engine?: Mandarine.MandarineMVC.TemplateEngine.Engines): void
[src]