glacier-web-cli 0.5.0

Command-line tool for creating and running Glacier applications.
1
2
3
4
5
6
7
8
9
10
11
12
{# links: (href, text); `current` is the href of the section the page is in. #}
{% props name: String, links: Vec<(String, String)>, href: String = "/", current: String = "", label: String = "Service" %}
<nav class="ui-service-nav" aria-label="{{ label }}">
  <div class="ui-service-nav-inner">
    <a class="ui-service-name" href="{{ href }}">{{ name }}</a>
    <ul>
      {%- for (link, text) in links.iter() %}
      <li><a href="{{ link }}"{% if *link == current %} aria-current="page"{% end %}>{{ text }}</a></li>
      {%- end %}
    </ul>
  </div>
</nav>