Kanekotic/Meteor - Session variables

Created Thu, 04 Feb 2016 09:56:49 +0200 Modified Sun, 05 Dec 2021 10:26:06 +0000

Session variables are easy to use in meteor. the can ve get and set from the javascript code using:

Session.set('variableName', true);

on your HTML you can reference the get method easily by:

<template name="admin">
    {{#if $.Session.get 'variableName'}}
        I am here
        I am not here