Legacy

screenshot of Legacy

Active route helpers for the most popular routers in Meteor

Overview

The zimme:active-route package is a powerful tool designed for developers using Meteor frameworks. It offers fantastic helpers that simplify checking the current active route or path in your application. With the recent updates, including support for kadira:flow-router, this package has been streamlined for performance while remaining backward compatible with its predecessor.

For anyone looking to manage navigation states in their Meteor applications more efficiently, the zimme:active-route package provides a comprehensive and user-friendly approach. It not only allows for easy detection of active routes, but it also comes with customizable features that cater to various development needs.

Features

  • Template Helpers: Easily check if a route or path is active with helpers like isActiveRoute and isActivePath, which return customizable default strings or false.

  • JavaScript Helpers: Helpers such as ActiveRoute.name and ActiveRoute.path enable users to verify active routes and paths in a straightforward boolean format.

  • Configurable Options: Set global options like activeClass and disabledClass to redefine default classes for active and inactive routes, making it easy to adapt to your application’s design.

  • Case Sensitivity: Manage route matching case sensitivity seamlessly by configuring the caseSensitive option, allowing for more flexible route handling.

  • Regex Support: Utilize regular expressions for sophisticated route and path matching with the regex option, enabling advanced pattern recognition within routes.

  • Backward Compatibility: Users transitioning from zimme:iron-router-active will appreciate the smooth upgrade path, as this package maintains compatibility with previous versions.

  • Supports Multiple Routers: The package is designed to work with various routers, including iron:router and kadira:flow-router, providing versatility based on your development needs.

The zimme:active-route package is a game-changer for Meteor developers, making route and path management not only simpler but also more dynamic and adaptable to different applications.