Skip to content

Instantly share code, notes, and snippets.

@splendido
Created June 30, 2014 07:33
Show Gist options
  • Save splendido/163c5c68195fb6e38b4e to your computer and use it in GitHub Desktop.
Save splendido/163c5c68195fb6e38b4e to your computer and use it in GitHub Desktop.
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