ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ***** ## web-server-renderer.js web服务器渲染 >[info] import ~~~ ;(导入)服务器渲染工具 import { createRenderer } from 'server/create-renderer' import { isUnaryTag } from 'web/util/index' import modules from 'web/server/modules/index' import baseDirectives from 'web/server/directives/index' ~~~ >[info] module ~~~ ;服务器渲染接口 export default function publicCreateRenderer (options = {}) { const directives = Object.assign(baseDirectives, options.directives) return createRenderer({ isUnaryTag, modules, directives }) } ~~~ >[info] export ~~~ ;(导出)服务器渲染接口 export default function publicCreateRenderer (options = {}) {} ~~~