projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
19302: side panel updates favorites Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
[arvados.git]
/
src
/
lib
/
cwl-svg
/
graph
/
template-parser.ts
1
export class TemplateParser {
2
3
static parse(tpl: any) {
4
const ns = "http://www.w3.org/2000/svg";
5
const node = document.createElementNS(ns, "g");
6
node.innerHTML = tpl;
7
return node.firstElementChild;
8
}
9
}