angular-docs-cn/public/docs/_includes/_ts-temp.jade

34 lines
905 B
Plaintext
Raw Normal View History

- var language = current.path[1]
2016-04-09 12:38:38 -04:00
- var lang = '你选中的语言'
if language == 'dart'
- lang = 'Dart'
if language == 'js'
2016-04-09 12:38:38 -04:00
- lang = 'JavaScript'
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-09 12:38:38 -04:00
for item, slug in items
if slug == current.path[4]
- name = 'the <b><i>' + item.title + '</i></b> chapter'
2016-04-09 12:38:38 -04:00
p.
2016-04-09 12:38:38 -04:00
这个章节在 #{lang} 语种下还不可用。
建议您阅读TypeScript版本。
a(href=path, class='md-primary md-button md-ink-ripple').
2016-04-09 12:38:38 -04:00
阅读!{name}TypeScript版本
// != partial(path)