diff --git a/dist/template.d.ts b/dist/template.d.ts index 26c4a15..dfd1bc7 100644 --- a/dist/template.d.ts +++ b/dist/template.d.ts @@ -1,9 +1,9 @@ export default class Template { - private views; - private globals; - private cache; + views: string; + globals: Record<string, any>; + cache: boolean; + debug: boolean; private templates; - private debug; constructor(); setDebug(debug: boolean): void; setViews(views: string): void; diff --git a/src/template.ts b/src/template.ts index eadfd06..81800df 100644 --- a/src/template.ts +++ b/src/template.ts @@ -2,11 +2,11 @@ import fs from "node:fs"; import path from "node:path"; export default class Template { - private views: string; - private globals: Record<string, any>; - private cache: boolean; + public views: string; + public globals: Record<string, any>; + public cache: boolean; + public debug: boolean; private templates: Map<string, { code: string; cached: Date }>; - private debug: boolean; constructor() { this.views = "./views";