language = current.path[1] title = "JavaScript " filter = /(\.html$)/ replace = /(\.html$)|(^index\.html$)/ version = '' if current.path[2] version = current.path[2].replace(/\_+/gm, ".") 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 = 'JavaScript ' + jsLatest else title = 'JavaScript ' + version if language == 'dart' if version == "latest" title = 'Dart ' + dartLatest else title = 'Dart ' + version nav.hero-subtitle.text-subhead.dropdown button(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", "JavaScript", jsLatest) mixin tree(public.docs.dart, "/docs/dart", "Dart", dartLatest) ul li #{name} Angular 1.X li #{name} AngularDart 1.X