/* * UI Helpers * Define UI helpers for common template functionality. */ /* * Current Route * Return an active class if the currentRoute session variable name * (set in the appropriate file in /client/routes/) is equal to the name passed * to the helper in the template. */ UI.registerHelper('currentRoute', function(route){ return Session.equals('currentRoute', route) ? 'active' : ''; });