A small package for displaying Foundation style flash messages. This is based on https://github.com/andreavaghi/meteor-flash-messages. Welcoming any pull requests that add thoughtfully to the package.
##Requirements You need to include the (Foundation JS and CSS)[http://foundation.zurb.com/docs/components/alert-boxes.html] to support the alert boxes. You can do this by including them manually or by using (meteor-foundation)[https://atmosphere.meteor.com/package/foundation].
##Usage Install the package:
mrt add foundation-flash-messages
Include the template somewhere in your index.html file:
{{> meteorMessages}}
And then send messages:
Messages.send(STYLE,MESSAGE);
And to clear messages:
Messages.clear();
For example:
Messages.send('alert', 'There was a problem signing you in.');
Messages.send('info', 'We will be shutting down in 10 minutes.');
Messages.send('success', 'Your account has been updated!');