Skip to content

docs(guide): rewrite the routing guide around ostrio:flow-router-extra - #544

Open
dupontbertrand wants to merge 1 commit into
meteor:release-3.1.0from
dupontbertrand:docs/blaze-routing-guide
Open

dupontbertrand wants to merge 1 commit into
meteor:release-3.1.0from
dupontbertrand:docs/blaze-routing-guide

Conversation

@dupontbertrand

Copy link
Copy Markdown
Collaborator

Summary

Rewrites site/source/guide/routing.md into a practical Blaze routing guide built around ostrio:flow-router-extra (consistent with guide/smart-components.md, guide/testing.md, and the Meteor 3 Blaze skeleton and docs).

Changes

  • site/source/guide/routing.md:
    • Leads with ostrio:flow-router-extra (installed by default in meteor create --blaze and meteor create --full) instead of placing iron:router first.
    • Documents layouts with <code v-pre>{{> yield}}</code> and this.render(layout, page, data).
    • Documents URL parameters, query parameters, and reactive getters (FlowRouter.getParam, FlowRouter.getQueryParam, FlowRouter.getRouteName, FlowRouter.watchPathChange).
    • Shows reactive subscriptions per route in Template.name.onCreated with this.autorun() and <code v-pre>{{Template.subscriptionsReady}}</code>.
    • Adds a reference table of the built-in Spacebars helpers (pathFor, urlFor, param, queryParam, currentRouteName, isActiveRoute, isActivePath) and programmatic navigation with FlowRouter.go().
    • Covers dynamic import() code-splitting in waitOn, triggersEnter auth guards, and wildcard 404 routes (FlowRouter.route('*', ...)).
    • Moves kadira:flow-router and iron:router to a short Legacy Routers section at the bottom and removes the dead kadira.io link.

Verification

  • npm run docs:init && npm run docs:build (VitePress) passes with no broken links or compilation warnings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant