Support for url based resources

This commit is contained in:
Endeavorance 2025-04-04 13:50:43 -04:00
parent ae1b9e262e
commit 5b90a8e1b3
6 changed files with 342 additions and 135 deletions

20
src/muse.ts Normal file
View file

@ -0,0 +1,20 @@
import { loadBinding, type Binding } from "#core/binding";
export class Muse {
bindingLoaded = false;
preliminaryBinding: Partial<Binding> = {};
additionalSources: string[] = [];
additionalPluginPaths: string[] = [];
constructor(bindingConfig: Partial<Binding>) {
this.preliminaryBinding = bindingConfig;
}
source(newSource: string) {
this.additionalSources.push(newSource);
}
plugin(pluginPath: string) {
this.additionalPluginPaths.push(pluginPath);
}
}