Skip to content

Instantly share code, notes, and snippets.

@JohnB
Created April 1, 2014 22:03
Show Gist options
  • Save JohnB/9924022 to your computer and use it in GitHub Desktop.
Save JohnB/9924022 to your computer and use it in GitHub Desktop.
How meteor's {{loginButtons}} worked until October 2013
// NOTE: this code was replaced here:
// https://github.com/meteor/meteor/commit/119682c8ec26e84e63e3e62bf0510d515aa78d97#diff-e7d59a612c271f7d2ee876d7802cf170L4
Handlebars.registerHelper( // 4
"loginButtons", // 5
function (options) { // 6
if (options.hash.align === "right") // 7
return new Handlebars.SafeString(Template._loginButtons({align: "right"})); // 8
else // 9
return new Handlebars.SafeString(Template._loginButtons({align: "left"})); // 10
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment