Skip to content

Commit

Permalink
Merge pull request #227 from jaredwray/upgrading-@jaredwray/fumanchu-…
Browse files Browse the repository at this point in the history
…to-3.0.1

upgrading @jaredwray/fumanchu to 3.0.1
  • Loading branch information
jaredwray authored Dec 2, 2024
2 parents f6c72c1 + 05a9672 commit 4a356c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"liquidjs"
],
"dependencies": {
"@jaredwray/fumanchu": "^2.1.0",
"@jaredwray/fumanchu": "^3.0.1",
"ejs": "^3.1.10",
"liquidjs": "^10.19.0",
"nunjucks": "^3.2.4",
Expand Down
7 changes: 5 additions & 2 deletions src/engines/handlebars.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-argument */
import fs from 'node:fs';
import * as _ from 'underscore';
import fumanchu from '@jaredwray/fumanchu';
import {helpers, handlebars} from '@jaredwray/fumanchu';
import {BaseEngine} from '../base-engine.js';
import type {EngineInterface} from '../engine-interface.js';

Expand All @@ -14,7 +14,10 @@ export class Handlebars extends BaseEngine implements EngineInterface {
this.names = ['handlebars', 'mustache'];
this.opts = options;

this.engine = fumanchu;
this.engine = handlebars;

// Register helpers
helpers({handlebars}, this.opts);

this.setExtensions(['hbs', 'hjs', 'handlebars', 'mustache']);
}
Expand Down

0 comments on commit 4a356c7

Please sign in to comment.