(text)
| 100 | } : {}; |
| 101 | |
| 102 | function read(text) { |
| 103 | var files = []; |
| 104 | angular.forEach(text ? text.split(' ') : [], function(refId) { |
| 105 | // refId is index.html-343, so we need to strip the unique ID when exporting the name |
| 106 | files.push({name: refId.replace(/-\d+$/, ''), content: getEmbeddedTemplate(refId)}); |
| 107 | }); |
| 108 | return files; |
| 109 | } |
| 110 | }; |
| 111 | |
| 112 |