@enure/jacklin 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/template.handlebars +1 -1
package/index.js
CHANGED
|
@@ -5536,6 +5536,7 @@ var import_handlebars = __toESM(require_lib(), 1);
|
|
|
5536
5536
|
import { fileURLToPath } from "url";
|
|
5537
5537
|
import { dirname, resolve } from "path";
|
|
5538
5538
|
import { readFileSync } from "fs";
|
|
5539
|
+
import_handlebars.default.registerHelper("or", (a, b) => a || b);
|
|
5539
5540
|
import_handlebars.default.registerHelper("getShortDate", (dateStr) => {
|
|
5540
5541
|
if (typeof dateStr === "string") {
|
|
5541
5542
|
const date = new Date(dateStr);
|
package/index.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { dirname, resolve } from "path";
|
|
|
3
3
|
import { readFileSync } from "fs";
|
|
4
4
|
import Handlebars from "handlebars";
|
|
5
5
|
|
|
6
|
+
Handlebars.registerHelper("or", (a, b) => a || b);
|
|
7
|
+
|
|
6
8
|
Handlebars.registerHelper("getShortDate", (dateStr) => {
|
|
7
9
|
if (typeof dateStr === 'string') {
|
|
8
10
|
const date = new Date(dateStr);
|
package/package.json
CHANGED
package/template.handlebars
CHANGED
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
<h2>Work History, cont.</h2>
|
|
178
178
|
<ul class="SummaryList">
|
|
179
179
|
{{#each work}}
|
|
180
|
-
{{#unless this.isFeatured}}
|
|
180
|
+
{{#unless (or this.isFeatured this.hide)}}
|
|
181
181
|
<li class="SummaryList-item">
|
|
182
182
|
<span class="SummaryList-itemName">{{this.name}}</span> <span class="SummaryList-itemPosition">({{this.position}})</span>
|
|
183
183
|
</li>
|