| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  | - var language = current.path[1] | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  | - var lang = '你选中的语言' | 
					
						
							| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | if language == 'dart' | 
					
						
							|  |  |  |   - lang = 'Dart' | 
					
						
							|  |  |  | if language == 'js' | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  |   - lang = 'JavaScript' | 
					
						
							| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  | if language == 'ts' | 
					
						
							|  |  |  |   - lang = 'TypeScript' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - var page = '' | 
					
						
							|  |  |  | if current.path[4] | 
					
						
							|  |  |  |   - var page = current.path[4] + '.html' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - var path = '/docs/ts/latest/'+ current.path[3] + '/' + page | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | - var name = 'it' | 
					
						
							|  |  |  | - var secondaryPath = public.docs[current.path[1]][current.path[2]][current.path[3]] | 
					
						
							|  |  |  | if secondaryPath | 
					
						
							|  |  |  |   - var data = secondaryPath._data | 
					
						
							|  |  |  |   - var listType = data._listtype | 
					
						
							|  |  |  |   - var items = listType == 'api' ? secondaryPath : data | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  |   for item, slug in items | 
					
						
							|  |  |  |     if slug == current.path[4] | 
					
						
							|  |  |  |       - name = 'the <b><i>' + item.title + '</i></b> chapter' | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  | p. | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  |   这个章节在 #{lang} 语种下还不可用。 | 
					
						
							|  |  |  |   建议您阅读TypeScript版本。 | 
					
						
							| 
									
										
										
										
											2016-02-25 09:03:50 -08:00
										 |  |  | a(href=path, class='md-primary md-button md-ink-ripple'). | 
					
						
							| 
									
										
										
										
											2016-04-10 00:38:38 +08:00
										 |  |  |   阅读!{name}TypeScript版本 | 
					
						
							|  |  |  | // != partial(path) |