Created
June 30, 2014 07:33
-
-
Save splendido/163c5c68195fb6e38b4e to your computer and use it in GitHub Desktop.
Minimal setup for accounts-templates-bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mrt add bootstrap-3 | |
mrt add fontawesome4 | |
mrt add iron-router | |
mrt add accounts-templates-bootstrap | |
# Nothing displayed up to here | |
# You need some service as well! ;-) | |
mrt add accounts-password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AccountsTemplates.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta charset="utf-8"> | |
<title>test-signin</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
</head> | |
<body> | |
</body> | |
<template name="layout"> | |
{{> yield}} | |
</template> | |
<template name="home"> | |
<div class="container"> | |
{{> signinForm}} | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router.configure({ | |
layoutTemplate: 'layout', | |
}); | |
Router.map(function() { | |
this.route('home', { | |
path: '/', | |
template: 'home', | |
onBeforeAction: function(){ | |
AccountsTemplates.setState('sgin'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment