main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
607 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = stringTemplate;
|
---|
7 | var _options = require("./options.js");
|
---|
8 | var _parse = require("./parse.js");
|
---|
9 | var _populate = require("./populate.js");
|
---|
10 | function stringTemplate(formatter, code, opts) {
|
---|
11 | code = formatter.code(code);
|
---|
12 | let metadata;
|
---|
13 | return arg => {
|
---|
14 | const replacements = (0, _options.normalizeReplacements)(arg);
|
---|
15 | if (!metadata) metadata = (0, _parse.default)(formatter, code, opts);
|
---|
16 | return formatter.unwrap((0, _populate.default)(metadata, replacements));
|
---|
17 | };
|
---|
18 | }
|
---|
19 |
|
---|
20 | //# sourceMappingURL=string.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.