language = current.path[1] title = "JavaScript " filter = /(\.html$)/ replace = /(\.html$)|(^index\.html$)/ version = '' page = '' if current.path[2] version = current.path[2].replace(/\_+/gm, ".") if current.path[3] page = current.path[3] + '.html' mixin tree(directory, urlPrefix, name, latest) ul for val, semvar in directory if semvar !== '.git' && semvar !== '_data' libVersion = (semvar == "latest") ? latest : semvar.replace(/\_+/gm, ".") li #{name} #{libVersion} if language == 'js' if version == "latest" title = 'Angular 2 for JavaScript' else title = 'Angular ' + version + ' for JavaScript' if language == 'dart' if version == "latest" title = 'Angular 2 for Dart' else title = 'Angular ' + version + ' for Dart' nav.hero-subtitle.text-subhead.dropdown button(aria-label="Select a version of Angular" md-button class="dropdown-button" ng-click="toggleVersionMenu($event)") #{title} div(class="overlay ng-hide" ng-click="toggleVersionMenu($event)" ng-show="showMenu") div(class="dropdown-menu ng-hide" ng-show="showMenu") mixin tree(public.docs.js, "/docs/js", "Angular 2 for JavaScript") mixin tree(public.docs.dart, "/docs/dart", "Angular 2 for Dart") ul li #{name} Angular 1.X for JavaScript li #{name} Angular 1.X for Dart