mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
26 lines
527 B
JavaScript
26 lines
527 B
JavaScript
import { Compiler } from '../../src/core/render/compiler'
|
|
import { AbstractHistory } from '../../src/core/router/history/abstract'
|
|
import path from 'path'
|
|
import fs from 'fs'
|
|
|
|
export default class Renderer {
|
|
constructor ({
|
|
template,
|
|
path,
|
|
config,
|
|
cache
|
|
}) {
|
|
this.template = template
|
|
this.path = path
|
|
this.config = config
|
|
this.cache = cache
|
|
|
|
this.router = new AbstractHistory()
|
|
this.compiler = new Compiler(config, this.router)
|
|
}
|
|
|
|
renderToString(url) {
|
|
console.log(url)
|
|
}
|
|
}
|