Capgemini / Capgemini/gov-prototype-by-prompt

Move logic out of the Nunjucks views

Open
#147 0 comments 0 reactions 1 assignee Claimed by @EdenJia-Capgemini View on GitHub
size S
Dominant language
TypeScript
Stars
20
Forks
4
PR merge metrics
No merged PRs in 30d

Description

### What feature do you want to see added?

Move logic out of the Nunjucks views and into the TS route functions.

### Why do you want this feature? Does it solve a problem?

Some (e.g., results.njk) have a lot of logic, for example if statement and for loops. It's safer to include these in the TS routes.

### How should the feature be implemented?

Consider what logic can be reused to reduce duplication.

### Additional context (if applicable)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.