MCPcopy Index your code
hub / github.com/emberjs/ember.js / renderToHTML

Function renderToHTML

tests/node/helpers/setup-app.js:139–152  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

137}
138
139function renderToHTML(url) {
140 let app = this.createApplication();
141 let dom = new SimpleDOM.Document();
142 let root = dom.body;
143
144 return this.run(app, 'visit', url, {
145 isBrowser: false,
146 document: dom,
147 rootElement: root,
148 }).then(function () {
149 let serializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);
150 return serializer.serialize(root);
151 });
152}
153
154function registerApplicationClasses(app, registry) {
155 app.initializer({

Callers

nothing calls this directly

Calls 4

thenMethod · 0.80
runMethod · 0.80
createApplicationMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected