Skip to content

Commit

Permalink
chore: add attrib
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed May 30, 2023
1 parent df82f2c commit 41f0688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const AsyncFunction = async function () {}.constructor; // eslint-disable-line @
export function compile(this: Eta, str: string, options?: Partial<Options>): TemplateFunction {
const config: EtaConfig = this.config;

/* ASYNC HANDLING (modified from mde/ejs) */
/* ASYNC HANDLING */
// code gratefully taken from https://github.com/mde/ejs and adapted
const ctor = options && options.async ? (AsyncFunction as FunctionConstructor) : Function;
/* END ASYNC HANDLING */

Expand Down

0 comments on commit 41f0688

Please sign in to comment.