docpad-plugin-persona
express-persona npm module as a docpad plugin.
TheMozilla Persona, formerly called BrowserID, is self described as: "a cross-browser login system for the Web that's easy to use and easy to deploy. It works on all major browsers, and you can get started today."
This docpad plugin uses jsdom to query the DOM for "#persona-btn" on the renderDocument docpad event. If it finds it, it'll create a script tag that is the express-persona script:
var loginButton = document; loginButton;
The "Sign in" button comes in three color options:
Along with a script tag being created, a link tag will be created as well linking the appripiate css file to create a CSS3 Sign In button.
.class | Button | .css file |
.persona-btn | persona-btn.css | |
" + .dark | persona-dark-btn.css | |
" + .orange | persona-orange-btn.css |
Dependencies
jsdom.js | 0.2.x |
express | ~3.0.6 |
express-persona | 0.0.7 |
bal-util | >=1.13.8 <1.14 |