🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.

Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.

api

Node Traversal

Node traversal is a great way to link or get content, such as meta, from other nodes.

Using resolveNode

import { resolveNode } from '@roxi/routify'

const aParentNode = resolveNode('..')
const aSiblingNode = resolveNode('../sibling')
const aChildNode = resolveNode('./child')

Should we resolve sibling nodes through ../path or ./path?

Using node tree

import { context } from '@roxi/routify'

const aSiblingNode = $context.node.parent.children.example