Sha256: 650059f2bee4df5ac29f5fee697fba9198c161f86ae512c0964cc7f0512d245f

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

  <% @attributes.each do |attribute| %>
    <h3><strong><%= attribute.name %></strong></h3>
    <div class="row">
      <div class="col-md-12">
        <p>
          <strong>Description</strong><br />
        </p>
        <%= htmlify attribute.docstring %>
        <%= yieldall :object => attribute, :owner => object %>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <p>
          <strong>JSON and default value</strong>
        </p>
        <table class="table table-hover">
          <tr>
            <th>JSON</th>
            <th>Default value</th>
          </tr>
          <tr>
            <td>
              <% if object.type == :cookbook %>
                <%= htmlify attribute.to_json %>
              <% end %>
            </td>
            <td><%= htmlify attribute.default %></td>
          </tr>
        </table>
      </div>
    </div>
  <% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yard-chef-2.0.0 templates/default/attribute/html/cookbook_attribute.erb