2020-02-02 13:05:27 +08:00
|
|
|
// public
|
|
|
|
|
export { renderToString } from './renderToString'
|
|
|
|
|
|
|
|
|
|
// internal
|
|
|
|
|
export { renderComponent, renderSlot } from './renderToString'
|
2020-01-28 07:06:37 +08:00
|
|
|
export { renderClass, renderStyle, renderProps } from './renderProps'
|
2020-02-03 11:08:20 +08:00
|
|
|
|
|
|
|
|
// utils
|
|
|
|
|
import { escapeHtml as _escapeHtml, toDisplayString } from '@vue/shared'
|
|
|
|
|
|
|
|
|
|
// cast type to avoid dts dependency on @vue/shared (which is inlined)
|
|
|
|
|
export const escapeHtml = _escapeHtml as (raw: string) => string
|
|
|
|
|
|
|
|
|
|
export function interpolate(value: unknown): string {
|
|
|
|
|
return escapeHtml(toDisplayString(value))
|
|
|
|
|
}
|