(k,p)
| 54 | } |
| 55 | |
| 56 | function t(k,p){ |
| 57 | var v=get(data,k); if(v===undefined) return k; |
| 58 | if(p) Object.keys(p).forEach(function(n){v=v.replace(new RegExp('\\{'+n+'\\}','g'),p[n]);}); |
| 59 | return v; |
| 60 | } |
| 61 | |
| 62 | function apply(root){ |
| 63 | var c=root||document; |
no test coverage detected