Sha256: aba700b0a76f7527055c71cd4f5da178e23c0ee6db4b3bc634147db73a51949d

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents





  <div class="method_details_list">
    
    
      
        <div class="method_details first">
  <h3 class="signature first" id="partial-instance_method">
  
    - (<tt>Object</tt>) <strong>partial</strong>(template, opts = {}, &amp;block) 
  

  

  
</h3><div class="docstring">
  <div class="discussion">
    <p>Extends the built-in <code>partials</code> helper to allow the
use of a default partials directory as configured with
<code>options[:partials_dir]</code>. Middleman 4.0 removed the
option <code>partials_dir</code> which increased flexibility a 
lot, but hurt backwards compatibility. When used the
default location will be searched first for the
specified partial; if not found then the built-in
behavior will be used.</p>


  </div>
</div>
<div class="tags">
  <p class="tag_title">Parameters:</p>
<ul class="param">
  
    <li>
      
        <span class='name'>template</span>
      
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
        &mdash;
        <div class='inline'><p>The partial file to use.</p>
</div>
      
    </li>
  
    <li>
      
        <span class='name'>opts</span>
      
      
        <span class='type'>(<tt>Hash</tt>)</span>
      
      
        <em class="default">(defaults to: <tt>{}</tt>)</em>
      
      
        &mdash;
        <div class='inline'><p>Options to use for the partial.
Consult <strong>Middleman</strong>’s documentation for possible
options.</p>
</div>
      
    </li>
  
    <li>
      
        <span class='name'>&amp;block</span>
      
      
        <span class='type'>(<tt>Block</tt>)</span>
      
      
      
        &mdash;
        <div class='inline'><p>An option block as per the
default implementation by <strong>Middleman</strong>.</p>
</div>
      
    </li>
  
</ul>


</div>
</div>
      
    
  </div>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middlemac-2.0.0 documentation_project/Contents/Resources/Base.lproj/assets/partials/_yard_middlemac_helpers_extended.erb