marko-js / marko-js/run

Cascading meta to a sub-tree of routes

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
175
Forks
17
Avg merge
5h 26m
Merged PRs (30d)
5

Description

Currently meta files +meta.json needs to exist per +page.marko. We can't cascade the same meta file for an entire sub-tree of routes at once. Such a capability could be quite useful to set default meta, and only overriding/augmenting where it makes sense. Perhaps something like https://www.11ty.dev/docs/data-cascade/

Can we have such a feature?

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 reviewing how +meta.json is currently associated with each +page.marko and how route subtrees are resolved. Define the cascade, overriding, and augmenting behavior for a shared meta file, with completion marked by documented behavior and tests covering inheritance and overrides.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.