MCPcopy
hub / github.com/imsun/gitment / render

Function render

src/theme/default.js:334–343  ·  view source on GitHub ↗
(state, instance)

Source from the content-addressed store, hash-verified

332}
333
334function render(state, instance) {
335 const container = document.createElement('div')
336 container.lang = "en-US"
337 container.className = 'gitment-container gitment-root-container'
338 container.appendChild(instance.renderHeader(state, instance))
339 container.appendChild(instance.renderComments(state, instance))
340 container.appendChild(instance.renderEditor(state, instance))
341 container.appendChild(instance.renderFooter(state, instance))
342 return container
343}
344
345export default { render, renderHeader, renderComments, renderEditor, renderFooter }

Callers 1

extendRendererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected