UNPKG
k6-test-framework
Version:
latest (1.0.0)
1.0.0
Enterprise-grade load testing solution with k6
k6-test-framework
/
report
/
templateEngine.js
8 lines
(6 loc)
•
203 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
// report/templateEngine.js
import
Handlebars from
"handlebars"
;
export
const
compileTemplate = (
template
, data) => {
const
compiled = Handlebars.
compile
(
template
);
return
compiled
(data); };