Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimal setup for accounts-templates-bootstrap
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
AccountsTemplates.init();
<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>
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