File size: 494 Bytes
6b85c8b
 
 
 
 
 
926fa9d
6b85c8b
 
 
926fa9d
6b85c8b
 
8dd5bba
 
 
 
6b85c8b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

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);
  }
}