Spaces:
Running
Running
| export class Plugin { | |
| constructor(name, options) { | |
| this.name = name; | |
| this.options = options || {}; | |
| } | |
| async applyPrerender(manuscript, jobId) { | |
| console.log(`Applying plugin: ${this.name} with options:`, this.options); | |
| } | |
| async applyPostrender(originalManuscript, jobId, outFiles) { | |
| console.log(`Applying post-render plugin: ${this.name} with options:`, this.options); | |
| } | |
| log(...args) { | |
| console.log(`[Plugin: ${this.name}]`, ...args); | |
| } | |
| } | |