jaredhanson / jaredhanson/connect-flash

Use flash scope in Handlebars template without passing the value through controllers

Open
#35 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

Is there any way to read a value of the flash scope in a Handlebars template (I'm ussing `express-handlebars` module) without passing explicitly from the controller? Something like this:

```

{{flash.error}}


```

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reading the connect-flash middleware and the express-handlebars rendering context to determine whether flash values can be exposed without controller plumbing. Done means documenting or implementing a clearly supported way to access flash.error in a Handlebars template.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, handlebars, javascript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.