| Total Complexity | 2 |
| Complexity/F | 1 |
| Lines of Code | 12 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | var App = App || {}; |
||
| 2 | |||
| 3 | App.Template = { |
||
| 4 | render: function (html, data) { |
||
| 5 | $.each(data, function (k,v) { |
||
| 6 | var token = '{{' + k + '}}'; |
||
| 7 | html = html.replace(token, v); |
||
| 8 | }); |
||
| 9 | |||
| 10 | return html; |
||
| 11 | }, |
||
| 12 | } |
||
| 13 |