File tree 5 files changed +26
-12
lines changed
5 files changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ ecmascript # Enable ECMAScript2015+ syntax in app code
19
19
insecure # Allow all DB writes from clients (for prototyping)
20
20
twbs:bootstrap
21
21
underscore
22
+ iron:router@1.0.0-rc.1
Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ htmljs@1.0.5
29
29
http@1.1.1
30
30
id-map@1.0.4
31
31
insecure@1.0.4
32
+ iron:controller@1.0.12
33
+ iron:core@1.0.11
34
+ iron:dynamic-template@1.0.12
35
+ iron:layout@1.0.12
36
+ iron:location@1.0.11
37
+ iron:middleware-stack@1.0.11
38
+ iron:router@1.0.12
39
+ iron:url@1.0.11
32
40
jquery@1.11.4
33
41
launch-screen@1.0.4
34
42
livedata@1.0.15
Original file line number Diff line number Diff line change 1
1
< head >
2
2
< title > Microscope</ title >
3
3
</ head >
4
- < body >
5
- < div class ="container ">
6
- < header class ="navbar navbar-default " role ="navigation ">
7
- < div class ="navbar-header ">
8
- < a class ="navbar-brand " href ="/ "> Microscope</ a >
9
- </ div >
10
- </ header >
11
- < div id ="main ">
12
- {{> postsList}}
13
- </ div >
14
- </ div >
15
- </ body >
Original file line number Diff line number Diff line change
1
+ < template name ="layout ">
2
+ < div class ="container ">
3
+ < header class ="navbar navbar-default " role ="navigation ">
4
+ < div class ="navbar-header ">
5
+ < a class ="navbar-brand " href ="{{pathFor 'postsList'}} "> Microscope</ a >
6
+ </ div >
7
+ </ header >
8
+ < div id ="main ">
9
+ {{> yield}}
10
+ </ div >
11
+ </ div >
12
+ </ template >
Original file line number Diff line number Diff line change
1
+ Router . configure ( {
2
+ layoutTemplate : 'layout'
3
+ } ) ;
4
+
5
+ Router . route ( '/' , { name : 'postsList' } ) ;
You can’t perform that action at this time.
1 commit comments
Vivais commentedon Dec 4, 2017
for windows user:
meteor add iron:router