Stash commit to open a new branch.

This commit is contained in:
PeekabooSteam
2023-09-04 22:54:01 +01:00
parent 4d863bb894
commit a08eb418a6
10 changed files with 203 additions and 70 deletions

View File

@@ -1,12 +1,11 @@
import { OlympusApp } from "../olympusapp";
export interface PluginInterface {
}
const templateParser = require( "ejs" );
export abstract class Plugin {
#olympusApp!:OlympusApp;
protected name = "";
#templateParser:any;
constructor( olympusApp:OlympusApp, pluginName:string ) {
@@ -16,8 +15,9 @@ export abstract class Plugin {
throw new Error( `Plugin names must match regex: ${regex}` );
}
this.name = pluginName;
this.#olympusApp = olympusApp;
this.name = pluginName;
this.#olympusApp = olympusApp;
this.#templateParser = templateParser;
}
@@ -29,4 +29,8 @@ export abstract class Plugin {
return this.#olympusApp;
}
getTemplateParser() {
return this.#templateParser;
}
}