Skip to content

Commit

Permalink
Merge pull request #63 from jaredwray/migrating-off-handlebars-helper…
Browse files Browse the repository at this point in the history
…s-to-bug-fixed-version

migrating off handlebars-helpers to bug fixed version
  • Loading branch information
jaredwray committed Aug 1, 2022
2 parents 2f1ee92 + 39fa5c6 commit 847754c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -362,9 +362,9 @@ We are using [Markdoc](https://markdoc.io/) which has a ton of powerful features

#### Handlebars

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.
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.

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:
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:

```javascript
const ecto = Ecto();
Expand Down Expand Up @@ -570,9 +570,9 @@ The way Handlebars works can be summarized as follows:
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.
3. On its execution, the function returns the required HTML after replacing the variables of the template with their corresponding values.

In Ecto, we use the [Handlebars](https://www.npmjs.com/package/handlebars-helpers) engine to render mustache-related templates.
In Ecto, we use the [Handlebars](https://www.npmjs.com/package/handlebars) engine to render mustache-related templates.

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:
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:


```javascript
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,8 +39,8 @@
"ejs": "^3.1.8",
"fs-extra": "^10.1.0",
"handlebars": "^4.7.7",
"handlebars-helpers": "^0.10.0",
"helper-date": "^1.0.1",
"helpers-for-handlebars": "https://github.com/jaredwray/helpers-for-handlebars",
"liquidjs": "^9.39.1",
"nunjucks": "^3.2.3",
"pug": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/engines/handlebars.ts
@@ -1,6 +1,6 @@
import { BaseEngine } from "../baseEngine";
import * as handlebars from "handlebars";
import * as helpers from "handlebars-helpers";
import * as helpers from "helpers-for-handlebars";
import * as fs from "fs-extra";
import * as _ from "underscore";

Expand Down

0 comments on commit 847754c

Please sign in to comment.