MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / wrapTemplate

Function wrapTemplate

web/static/bower_components/angular/angular.js:8597–8608  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

8595
8596
8597 function wrapTemplate(type, template) {
8598 type = lowercase(type || 'html');
8599 switch (type) {
8600 case 'svg':
8601 case 'math':
8602 var wrapper = document.createElement('div');
8603 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
8604 return wrapper.childNodes[0].childNodes;
8605 default:
8606 return template;
8607 }
8608 }
8609
8610
8611 function getTrustedContext(node, attrNormalizedName) {

Callers 3

compileFunction · 0.85
applyDirectivesToNodeFunction · 0.85
compileTemplateUrlFunction · 0.85

Calls 1

lowercaseFunction · 0.85

Tested by

no test coverage detected