ecto 2.0.2 → 2.1.0

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/README.md CHANGED
@@ -362,9 +362,9 @@ We are using [Markdoc](https://markdoc.io/) which has a ton of powerful features
362
362
 
363
363
  #### Handlebars
364
364
 
365
- In Ecto we use the [handlebars](https://www.npmjs.com/package/handlebars-helpers) engine to render `mustache` related templates. This is because handlebars is based on mustache with just more additional features.
365
+ In Ecto we use the [handlebars](https://www.npmjs.com/package/handlebars) engine to render `mustache` related templates. This is because handlebars is based on mustache with just more additional features.
366
366
 
367
- Handlebars is a fantastic template engine, and we've incorporated helpers to make it even better. We added in [handlebars-helpers](https://www.npmjs.com/package/handlebars-helpers) so you can format dates, and more. Here is an example using `Handlebars Helpers` in your template:
367
+ Handlebars is a fantastic template engine, and we've incorporated helpers to make it even better. We added in [helpers-for-handlebars](https://github.com/jaredwray/helpers-for-handlebars) so you can format dates, and more. Here is an example using `Handlebars Helpers` in your template:
368
368
 
369
369
  ```javascript
370
370
  const ecto = Ecto();
@@ -570,9 +570,9 @@ The way Handlebars works can be summarized as follows:
570
570
  2. This function is then executed by passing a JSON object as an argument. This JSON object is known as context and it contains the values of the variables used in the template.
571
571
  3. On its execution, the function returns the required HTML after replacing the variables of the template with their corresponding values.
572
572
 
573
- In Ecto, we use the [Handlebars](https://www.npmjs.com/package/handlebars-helpers) engine to render mustache-related templates.
573
+ In Ecto, we use the [Handlebars](https://www.npmjs.com/package/handlebars) engine to render mustache-related templates.
574
574
 
575
- Handlebars is a fantastic template engine, and we've incorporated helpers to make it even better. We added in [handlebars-helpers](https://www.npmjs.com/package/handlebars-helpers) so you can format dates, and more. Here is an example using Handlebars Helpers in your template:
575
+ Handlebars is a fantastic template engine, and we've incorporated helpers to make it even better. We added in [helpers-for-handlebars](https://github.com/jaredwray/helpers-for-handlebars) so you can format dates, and more. Here is an example using Handlebars Helpers in your template:
576
576
 
577
577
 
578
578
  ```javascript
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Handlebars = void 0;
4
4
  const baseEngine_1 = require("../baseEngine");
5
5
  const handlebars = require("handlebars");
6
- const helpers = require("handlebars-helpers");
6
+ const helpers = require("helpers-for-handlebars");
7
7
  const fs = require("fs-extra");
8
8
  const _ = require("underscore");
9
9
  class Handlebars extends baseEngine_1.BaseEngine {
@@ -1 +1 @@
1
- {"version":3,"file":"handlebars.js","sourceRoot":"","sources":["../../src/engines/handlebars.ts"],"names":[],"mappings":";;;AAAA,8CAA2C;AAC3C,yCAAyC;AACzC,8CAA8C;AAC9C,+BAA+B;AAC/B,gCAAgC;AAEhC,MAAa,UAAW,SAAQ,uBAAU;IAItC,YAAY,IAAY;QACpB,KAAK,EAAE,CAAC;QAHL,iBAAY,GAAW,WAAW,CAAC;QAKtC,IAAI,CAAC,KAAK,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;QAEzB,IAAI,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAa,EAAE,IAAY;QAEpC,mBAAmB;QACnB,IAAG,IAAI,CAAC,gBAAgB,EAAE;YACtB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,gBAAgB,GAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAClE;QAED,OAAO,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;QACpC,IAAI,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAErD,IAAI,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,GAAG,CA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H,MAAM,GAAG,IAAI,CAAC;SACjB;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAjDD,gCAiDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecto",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "Modern Template Consolidation Engine for EJS, Markdown, Pug, Nunjucks, and Handlebars",
5
5
  "main": "./dist/ecto.js",
6
6
  "types": "./dist/ecto.d.ts",
@@ -39,8 +39,8 @@
39
39
  "ejs": "^3.1.8",
40
40
  "fs-extra": "^10.1.0",
41
41
  "handlebars": "^4.7.7",
42
- "handlebars-helpers": "^0.10.0",
43
42
  "helper-date": "^1.0.1",
43
+ "helpers-for-handlebars": "https://github.com/jaredwray/helpers-for-handlebars",
44
44
  "liquidjs": "^9.39.1",
45
45
  "nunjucks": "^3.2.3",
46
46
  "pug": "^3.0.2",