Skip to main content
100%

routing

✓ Published0🌍 Public
Aandrewfulrich
Last edited Feb 17, 2016
Created on Feb 2, 2016

This example demonstrates a simple client-side router built with Meteor and a custom router object. It maps URL paths to templates, such as "/" to a hello template and "/test" to a test template, using the `Template.dynamic` helper to render the matching template. The router tracks URL changes via `window.onpopstate` and `window.onhashchange`, while a `Deps.Dependency` object triggers reactive updates in Meteor helpers. It also extracts URL parameters by splitting the remaining path segments, showing a basic approach to routing without external libraries.

AI-generated description

Similar vizzes