Commit 3089a92
authored
refactor: adopt template helper for 1 simple eejsBlock_* hook(s) (#11)
Replaces hand-rolled
exports.eejsBlock_X = (hookName, args, cb) => {
args.content += eejs.require(path[, {}, module]);
cb();
};
block(s) with template(path) from ep_plugin_helpers. Same runtime
behavior — eejs renders the same template into the same section.
Wave 2 of the template-adoption sweep — picks up hooks with explicit
empty-vars and/or module argument that wave 1's strict regex skipped.1 parent a34be3c commit 3089a92
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments