mde / mde/ejs

async option is not true async 3.1.10

Open
#764 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8.1k
Forks
846
PR merge metrics
No merged PRs in 30d

Description

We are using 3.1.10 with NodeJS 20.9.0.

I read that there is an async option for rendering templates. Upon further inspection of the source code, this is not a real Async behavior as the internals of this library use these calls to load file data.

  • fs.existsSync
  • fs.readFileSync

Any hopes to Promisify these calls to be truly async?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the async rendering path in the source code and locate its uses of fs.existsSync and fs.readFileSync. Check how those calls affect template loading under NodeJS 20.9.0; done means the async option no longer performs synchronous file reads while preserving rendering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.