You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,7 +25,7 @@ Assuming you have a main layout that looks like this:
25
25
<div class="content">
26
26
{{> Template.dynamic template=main}}
27
27
</div>
28
-
28
+
useraccounts
29
29
<footer>
30
30
{{> Template.dynamic template=footer}}
31
31
</footer>
@@ -58,13 +58,13 @@ AccountsTemplates.configure({
58
58
});
59
59
```
60
60
61
-
`useraccounts:flow-routing` uses the internal useraccounts `fullPageAtForm` is the built-in template useraccounts uses by default for its forms. You can override it on a per-route basis (see below) or replace it with `defaultTemplate:` field as above (templates specified in route config will still take precedence). Omit `defaultTemplate` (or set to an empty string) to use the `fullPageAtForm` template built-in to your useraccounts UI package (ex [material](https://github.com/meteor-useraccounts/materialize/blob/master/lib/full_page_at_form.html)).
61
+
`mealsunite:flow-routing-extra` uses the internal useraccounts `fullPageAtForm` is the built-in template useraccounts uses by default for its forms. You can override it on a per-route basis (see below) or replace it with `defaultTemplate:` field as above (templates specified in route config will still take precedence). Omit `defaultTemplate` (or set to an empty string) to use the `fullPageAtForm` template built-in to your useraccounts UI package (ex [material](https://github.com/meteor-useraccounts/materialize/blob/master/lib/full_page_at_form.html)).
62
62
63
63
NOTE: The above configs must load BEFORE your AccountsTemplates routes are defined (next section).
64
64
65
65
## React Configuration
66
66
67
-
Firstly, please ensure that your app depends upon the [React Layout][3] and the [Blaze Layout][2] packages. User Accounts currents only renders Blaze templates. In order to use User Accounts with React we rely on the [Blaze To React][4] package to render the User Accounts templates.
67
+
Firstly, please ensure that your app depends upon the [React Layout][3] and the [Blaze Layout][2] packages. User Accounts currents only renders Blaze templates. In order to use User Accounts with React we rely on the [Blaze To React][3] package to render the User Accounts templates.
68
68
69
69
Before you configure routes for User Accounts with Flow Router, you will need to make sure you have set a few default configuration items.
70
70
@@ -119,7 +119,7 @@ AccountsTemplates.configure({
119
119
120
120
`useraccounts:flow-routing` uses `fullPageAtForm` for the `defaultTemplate` option. `fullPageAtForm` is the built-in Blaze template that all UserAccounts themed packages (Bootstrap, Materialize, etc.) use for their forms. You can override it on a per-route basis (see below) or replace it as shown above (templates specified in a route config will still take precedence). Omit `defaultTemplate` (or set to an empty string) to use the `fullPageAtForm` template built-in to your useraccounts UI package (ex [material](https://github.com/meteor-useraccounts/materialize/blob/master/lib/full_page_at_form.html)).
121
121
122
-
Please note that this template must be a **Blaze** template. It will be rendered into your React layout using [Blaze To React][4].
122
+
Please note that this template must be a **Blaze** template. It will be rendered into your React layout using [Blaze To React][3].
123
123
124
124
NOTE: The above configs must load BEFORE your AccountsTemplates routes are defined (next section).
All options are passed to FlowRouter.route() which then creates a new custom route (see the official Flow Router documentation [here](https://atmospherejs.com/kadira/flow-router) for more details).
186
+
All options are passed to FlowRouter.route() which then creates a new custom route (see the official Flow Router documentation [here][1] for more details).
187
187
188
188
The `redirect` field permits to specify where to redirect the user after successful form submit. Actually, `redirect` can be a function so that, for example, the following:
189
189
@@ -232,7 +232,6 @@ Or if you want to protect ALL routes in your app:
0 commit comments