MCPcopy
hub / github.com/vuejs/core / ssrRender

Function ssrRender

packages/server-renderer/__tests__/ssrDirectives.spec.ts:569–578  ·  view source on GitHub ↗
(_ctx, _push, _parent, _attrs)

Source from the content-addressed store, hash-verified

567 },
568 },
569 ssrRender(_ctx, _push, _parent, _attrs) {
570 const _directive_xxx = resolveDirective('xxx')!
571 _push(
572 `<div${ssrRenderAttrs(
573 ssrGetDirectiveProps(_ctx, _directive_xxx, _ctx.x, 'arg', {
574 ok: true,
575 }),
576 )}></div>`,
577 )
578 },
579 }),
580 ),
581 ).toBe(`<div id="foo-arg-true"></div>`)

Callers

nothing calls this directly

Calls 5

ssrRenderAttrsFunction · 0.90
ssrGetDirectivePropsFunction · 0.90
resolveDirectiveFunction · 0.85
mergePropsFunction · 0.85
unrefFunction · 0.85

Tested by

no test coverage detected