You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
276 B
JavaScript

"use strict";
2 years ago
const templateExpression = require("../util/template-expression");
2 years ago
let tmplLazyWrapper = templateExpression(`(
2 years ago
$memoize(() => %%expression%%)
)`);
module.exports = function lazyWrapper(expression) {
2 years ago
return tmplLazyWrapper({
expression: expression
2 years ago
});
};