glacier-web-cli 0.5.0

Command-line tool for creating and running Glacier applications.
{% props caption: String, plans: Vec<(String, String)>, rows: Vec<(String, Vec<String>)>, highlight: i64 = 0, badge: String = "Most popular", current: i64 = 0, note: String = "" %}
{#- plans: (name, one-line description); rows: (row header, a price per plan); highlight: the emphasised plan's column, current: the matching row, both counted from 1 (0 for none). note: the basis (period, billing, tax). #}
<div class="ui-table-wrap"><table class="ui-pricing">
  <caption class="ui-sr-only">{{ caption }}</caption>
  <thead><tr><td></td>
    {%- for (i, (name, description)) in plans.iter().enumerate() %}
    {%- if (i + 1) as i64 == highlight %}
    <th scope="col" data-highlight><span class="ui-badge" data-shape="pill" style="margin-bottom:6px">{{ badge }}</span><br>{{ name }}{% if !description.is_empty() %}<small>{{ description }}</small>{% end %}</th>
    {%- else %}
    <th scope="col">{{ name }}{% if !description.is_empty() %}<small>{{ description }}</small>{% end %}</th>
    {%- end %}
    {%- end %}
  </tr></thead>
  <tbody>
    {%- for (r, (header, cells)) in rows.iter().enumerate() %}
    <tr{% if (r + 1) as i64 == current %} data-current{% end %}><th scope="row">{{ header }}</th>{% for (i, cell) in cells.iter().enumerate() %}<td{% if (i + 1) as i64 == highlight %} data-highlight{% end %}>{{ cell }}</td>{% end %}</tr>
    {%- end %}
  </tbody>
</table></div>
{%- if !note.is_empty() %}
<p class="ui-pricing-note">{{ note }}</p>
{%- end %}