Sha256: 313480d3bcac13527d0dbd1393c380fd25de0a29dcc09e0f0512ed470faf8117

Contents?: true

Size: 1017 Bytes

Versions: 25

Compression:

Stored size: 1017 Bytes

Contents

<% if @parameters && !@parameters.empty? %>
<div class="tags">
  <p class="tag_title"><%= @tag_title %></p>
  <ul>
    <% @parameters.each do |parameter| %>
    <li>
      <span class="name"><%= parameter.name + (parameter.isnamevar ? ' (namevar)' : '') %></span>
      <% if parameter.default %>
      <span class="default"> (defaults to: <em><%= parameter.default %></em>)</span>
      <% end %>
      <% unless parameter.docstring.empty? %>
      <div class="docstring">
        <div class="discussion">
          <%= htmlify(parameter.docstring) %>
        </div>
      </div>
      <% end %>
      <% unless parameter.values.empty? %>
      <div>
        Supported values:
        <ul>
          <% parameter.values.each do |value| %>
          <li>
            <% other = parameter.aliases[value] %>
            <%= value %><% if other %> (alias for: <em><%= other %></em>)<% end %>
          </li>
          <% end %>
        </ul>
      </div>
      <% end %>
    </li>
    <% end %>
  </ul>
</div>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
puppet-strings-4.1.3 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-4.1.2 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-4.1.1 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-4.1.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-4.0.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-4.0.0.rc.1 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-3.0.1 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-3.0.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.9.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.8.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.7.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.6.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.5.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.4.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.3.1 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.3.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.2.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.1.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-2.0.0 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb
puppet-strings-1.2.1 lib/puppet-strings/yard/templates/default/puppet_type/html/parameters.erb