738 lines
		
	
	
		
			20 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			738 lines
		
	
	
		
			20 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
  <head>
 | 
						|
  <meta charset='UTF-8'>
 | 
						|
  <title>CoffeeScript API Documentation</title>
 | 
						|
  <script src='../javascript/application.js'></script>
 | 
						|
  <script src='../javascript/search.js'></script>
 | 
						|
  <link rel='stylesheet' href='../stylesheets/application.css' type='text/css'>
 | 
						|
</head>
 | 
						|
  <body>
 | 
						|
    <div id='base' data-path='../'></div>
 | 
						|
<div id='header'>
 | 
						|
  <div id='menu'>
 | 
						|
    <a href='../extra/README.md.html' title='Yatta'>
 | 
						|
      Yatta
 | 
						|
    </a>
 | 
						|
    »
 | 
						|
    <a href='../alphabetical_index.html' title='Index'>
 | 
						|
      Index
 | 
						|
    </a>
 | 
						|
    »
 | 
						|
    <span class='title'>Haml</span>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
    <div id='content'>
 | 
						|
      <h1>
 | 
						|
        Class:
 | 
						|
        Haml
 | 
						|
      </h1>
 | 
						|
      <table class='box'>
 | 
						|
        <tr>
 | 
						|
          <td>Defined in:</td>
 | 
						|
          <td>node_modules/grunt-codo/node_modules/codo/node_modules/haml-coffee/src/nodes/haml.coffee</td>
 | 
						|
        </tr>
 | 
						|
        <tr>
 | 
						|
          <td>Inherits:</td>
 | 
						|
          <td>
 | 
						|
            <a href='../class/Node.html'>Node</a>
 | 
						|
          </td>
 | 
						|
        </tr>
 | 
						|
      </table>
 | 
						|
      <h2>Overview</h2>
 | 
						|
      <div class='docstring'>
 | 
						|
  <p>HAML node that contains Haml a haml tag that can have attributes
 | 
						|
and a text or code assignment. There are shortcuts for id and class
 | 
						|
generation and some special logic for merging attributes into existing
 | 
						|
ids and classes.</p><p>Haml HTML attributes are very limited and allows only simple string
 | 
						|
(with interpolation) or variable assignment to an attribute.</p><p>Ruby HTML attributes are more powerful and allows in addition to the
 | 
						|
HTML attributes function calls:</p>
 | 
						|
  <div class='examples'>
 | 
						|
    <h3>Examples:</h3>
 | 
						|
    <h4>
 | 
						|
      Haml tag
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>%footer                               =>  <footer></footer></code></pre>
 | 
						|
    <h4>
 | 
						|
      Haml id
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>#content                              =>  <div id='content'></div>
 | 
						|
%span#status{ :id => @user.status }   =>  <span id='status_#{ @user.status }'></span></code></pre>
 | 
						|
    <h4>
 | 
						|
      Haml classes
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>.hidden                               => <div class='hidden'></div>
 | 
						|
%span.large.hidden                    => <span class='large hidden'></span>
 | 
						|
.large{ :class => @user.role }        => <div class='large #{ @user.role }'></div></code></pre>
 | 
						|
    <h4>
 | 
						|
      Haml HTML attributes
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>%p(class='hidden')                     => <p class='hidden'><p>
 | 
						|
#account(class=@status)                => <div id='account' class='#{ status }'></div>
 | 
						|
.logout(title="Logout #{ user.name }") => <div class='logout' title='Logout #{ user.name }'></div></code></pre>
 | 
						|
    <h4>
 | 
						|
      Haml Ruby attributes
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>%p{ :class => App.user.get('role') }   => <p class='#{ App.user.get('role') }'></p></code></pre>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
</div>
 | 
						|
      <h2>Variables Summary</h2>
 | 
						|
      
 | 
						|
      <h3 class='inherited'>
 | 
						|
        Variable inherited from
 | 
						|
        <a href='../class/Node.html'>Node</a>
 | 
						|
      </h3>
 | 
						|
      <p class='inherited'>
 | 
						|
        <a href='../class/Node.html#CLEAR_WHITESPACE_LEFT-variable'>CLEAR_WHITESPACE_LEFT</a>
 | 
						|
        <a href='../class/Node.html#CLEAR_WHITESPACE_RIGHT-variable'>CLEAR_WHITESPACE_RIGHT</a>
 | 
						|
      </p>
 | 
						|
      <h2>Instance Method Summary</h2>
 | 
						|
      <ul class='summary'>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#evaluate-dynamic'>
 | 
						|
        #
 | 
						|
(void)
 | 
						|
<b>evaluate</b><span>()</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Evaluate the node content and store the opener tag and the closer tag if applicable.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#parseExpression-dynamic'>
 | 
						|
        #
 | 
						|
(Object)
 | 
						|
<b>parseExpression</b><span>(exp)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Parses the expression and detect the tag, attributes and any assignment.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#parseTag-dynamic'>
 | 
						|
        #
 | 
						|
(Object)
 | 
						|
<b>parseTag</b><span>(exp)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Parse a tag line. 
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#parseAttributes-dynamic'>
 | 
						|
        #
 | 
						|
(Object)
 | 
						|
<b>parseAttributes</b><span>(exp)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Parse attributes either in Ruby style <code>%tag{ :attr => 'value' }</code> or HTML style <code>%tag(attr='value)</code>.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#buildHtmlTagPrefix-dynamic'>
 | 
						|
        #
 | 
						|
(String)
 | 
						|
<b>buildHtmlTagPrefix</b><span>(tokens)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Build the HTML tag prefix by concatenating all the tag information together.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#interpolateCodeAttribute-dynamic'>
 | 
						|
        #
 | 
						|
(String)
 | 
						|
<b>interpolateCodeAttribute</b><span>(text, unwrap = false)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Wrap plain attributes into an interpolation for execution. 
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#quoteAndEscapeAttributeValue-dynamic'>
 | 
						|
        #
 | 
						|
(String)
 | 
						|
<b>quoteAndEscapeAttributeValue</b><span>(value, code = false)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Quote the attribute value, depending on its content.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#splitInterpolations-dynamic'>
 | 
						|
        #
 | 
						|
(Array<String>)
 | 
						|
<b>splitInterpolations</b><span>(value)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Split expression by its interpolations. 
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#buildDocType-dynamic'>
 | 
						|
        #
 | 
						|
(String)
 | 
						|
<b>buildDocType</b><span>(doctype)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      Build the DocType string depending on the <code>!!!</code> token and the currently used HTML format.
 | 
						|
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
  <li>
 | 
						|
    <span class='signature'>
 | 
						|
      <a href='#isNotSelfClosing-dynamic'>
 | 
						|
        #
 | 
						|
(Boolean)
 | 
						|
<b>isNotSelfClosing</b><span>(tag)</span>
 | 
						|
      </a>
 | 
						|
    </span>
 | 
						|
    <span class='desc'>
 | 
						|
      <p>Test if the given tag is a non-self enclosing tag, by matching against a fixed tag list or parse for the self
 | 
						|
closing slash <code>/</code> at the end.</p>
 | 
						|
    </span>
 | 
						|
  </li>
 | 
						|
</ul>
 | 
						|
      <h2>
 | 
						|
        <small>Inherited Method Summary</small>
 | 
						|
        <h3 class='inherited'>
 | 
						|
          Methods inherited from
 | 
						|
          <a href='../class/Node.html'>Node</a>
 | 
						|
        </h3>
 | 
						|
        <p class='inherited'>
 | 
						|
          <a href='../class/Node.html#addChild-dynamic'>#addChild</a>
 | 
						|
          <a href='../class/Node.html#getOpener-dynamic'>#getOpener</a>
 | 
						|
          <a href='../class/Node.html#getCloser-dynamic'>#getCloser</a>
 | 
						|
          <a href='../class/Node.html#isPreserved-dynamic'>#isPreserved</a>
 | 
						|
          <a href='../class/Node.html#isCommented-dynamic'>#isCommented</a>
 | 
						|
          <a href='../class/Node.html#markText-dynamic'>#markText</a>
 | 
						|
          <a href='../class/Node.html#markRunningCode-dynamic'>#markRunningCode</a>
 | 
						|
          <a href='../class/Node.html#markInsertingCode-dynamic'>#markInsertingCode</a>
 | 
						|
          <a href='../class/Node.html#evaluate-dynamic'>#evaluate</a>
 | 
						|
          <a href='../class/Node.html#render-dynamic'>#render</a>
 | 
						|
        </p>
 | 
						|
      </h2>
 | 
						|
      <h2>Instance Method Details</h2>
 | 
						|
      <div class='methods'>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='evaluate-dynamic'>
 | 
						|
      #
 | 
						|
(void)
 | 
						|
<b>evaluate</b><span>()</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Evaluate the node content and store the opener tag
 | 
						|
and the closer tag if applicable.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='parseExpression-dynamic'>
 | 
						|
      #
 | 
						|
(Object)
 | 
						|
<b>parseExpression</b><span>(exp)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Parses the expression and detect the tag, attributes
 | 
						|
and any assignment. In addition class and id cleanup
 | 
						|
is performed according the the Haml spec:</p><ul>
 | 
						|
<li>Classes are merged together</li>
 | 
						|
<li>When multiple ids are provided, the last one is taken, except they are defined in shortcut notation and attribute notation. In this case, they will be combined, separated by underscore.</li>
 | 
						|
</ul>
 | 
						|
 | 
						|
  <div class='examples'>
 | 
						|
    <h3>Examples:</h3>
 | 
						|
    <h4>
 | 
						|
      Id merging
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>#user{ :id => @user.id }    =>  <div id='user_#{ @user.id }'></div></code></pre>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>exp</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the HAML expression </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>Object</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the parsed tag and options tokens </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='parseTag-dynamic'>
 | 
						|
      #
 | 
						|
(Object)
 | 
						|
<b>parseTag</b><span>(exp)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Parse a tag line. This recognizes DocType tags <code>!!!</code> and
 | 
						|
HAML tags like <code>#id.class text</code>.</p><p>It also parses the code assignment <code>=</code>, <code>}=</code> and <code>)=</code> or
 | 
						|
inline text and the whitespace removal markers <code><</code> and <code>></code>.</p><p>It detects an object reference <code>[</code> and attributes <code>(</code> / <code>{</code>.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>exp</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the HAML expression </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>Object</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the parsed tag tokens </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='parseAttributes-dynamic'>
 | 
						|
      #
 | 
						|
(Object)
 | 
						|
<b>parseAttributes</b><span>(exp)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Parse attributes either in Ruby style <code>%tag{ :attr => 'value' }</code>
 | 
						|
or HTML style <code>%tag(attr='value)</code>. Both styles can be mixed:
 | 
						|
<code>%tag(attr='value){ :attr => 'value' }</code>.</p><p>This takes also care of proper attribute interpolation, unwrapping
 | 
						|
quoted keys and value, e.g. <code>'a' => 'hello'</code> becomes <code>a => hello</code>.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>exp</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the HAML expression </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>Object</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the parsed attributes </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='buildHtmlTagPrefix-dynamic'>
 | 
						|
      #
 | 
						|
(String)
 | 
						|
<b>buildHtmlTagPrefix</b><span>(tokens)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Build the HTML tag prefix by concatenating all the
 | 
						|
tag information together. The result is an unfinished
 | 
						|
html tag that must be further processed:</p><p>The Haml spec sorts the <code>class</code> names, even when they
 | 
						|
contain interpolated classes. This is supported by
 | 
						|
sorting classes at template render time.</p><p>If both an object reference and an id or class attribute is defined,
 | 
						|
then the attribute will be ignored.</p>
 | 
						|
  <div class='examples'>
 | 
						|
    <h3>Examples:</h3>
 | 
						|
    <h4>
 | 
						|
      Prefix tag
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'><a id='id' class='class' attr='value'</code></pre>
 | 
						|
    <h4>
 | 
						|
      Template render time sorting
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'><p class='#{ [@user.name(), 'show'].sort().join(' ') }'></code></pre>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>tokens</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>Object</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>all parsed tag tokens </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>String</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the tag prefix </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='interpolateCodeAttribute-dynamic'>
 | 
						|
      #
 | 
						|
(String)
 | 
						|
<b>interpolateCodeAttribute</b><span>(text, unwrap = false)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Wrap plain attributes into an interpolation for execution.
 | 
						|
In addition wrap it into escaping and cleaning function,
 | 
						|
depending on the options.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>text</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the possible code </span>
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span class='name'>unwrap</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>Boolean</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>unwrap static text from quotes </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>String</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the text of the wrapped code </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='quoteAndEscapeAttributeValue-dynamic'>
 | 
						|
      #
 | 
						|
(String)
 | 
						|
<b>quoteAndEscapeAttributeValue</b><span>(value, code = false)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Quote the attribute value, depending on its
 | 
						|
content. If the attribute contains an interpolation,
 | 
						|
each interpolation will be cleaned and/or escaped,
 | 
						|
depending on the compiler options.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>value</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the without start and end quote </span>
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span class='name'>code</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>if we are in a code block </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>String</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the quoted value </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='splitInterpolations-dynamic'>
 | 
						|
      #
 | 
						|
(Array<String>)
 | 
						|
<b>splitInterpolations</b><span>(value)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Split expression by its interpolations.</p>
 | 
						|
  <div class='examples'>
 | 
						|
    <h3>Examples:</h3>
 | 
						|
    <h4>
 | 
						|
      
 | 
						|
    </h4>
 | 
						|
    <pre><code class='coffeescript'>'Hello #{ "#{ soso({}) }" } Interpol') => ["Hello ", "#{ "#{ soso({}) }" }", " Interpol"]
 | 
						|
'Hello #{ "#{ soso }" } Interpol') => ["Hello ", "#{ "#{ soso }" }", " Interpol"]
 | 
						|
'Hello #{ int } Interpol') => ["Hello ", "#{ int }", " Interpol"]
 | 
						|
'Hello Interpol') => ["Hello Interpol"]
 | 
						|
'#{ int } Interpol') => ["#{ int }", " Interpol"]
 | 
						|
'Hello #{ int }') => ["Hello ", "#{ int }"]
 | 
						|
'#{ int }') => ["#{ int }"]</code></pre>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>value</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the attribute value </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>Array<String></tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the splitted string </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='buildDocType-dynamic'>
 | 
						|
      #
 | 
						|
(String)
 | 
						|
<b>buildDocType</b><span>(doctype)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Build the DocType string depending on the <code>!!!</code> token
 | 
						|
and the currently used HTML format.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>doctype</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the HAML doctype </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>String</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>the HTML doctype </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
  <div class='method_details'>
 | 
						|
    <p class='signature' id='isNotSelfClosing-dynamic'>
 | 
						|
      #
 | 
						|
(Boolean)
 | 
						|
<b>isNotSelfClosing</b><span>(tag)</span>
 | 
						|
      <br>
 | 
						|
    </p>
 | 
						|
    <div class='docstring'>
 | 
						|
  <p>Test if the given tag is a non-self enclosing tag, by
 | 
						|
matching against a fixed tag list or parse for the self
 | 
						|
closing slash <code>/</code> at the end.</p>
 | 
						|
</div>
 | 
						|
<div class='tags'>
 | 
						|
  <h3>Parameters:</h3>
 | 
						|
  <ul class='param'>
 | 
						|
    <li>
 | 
						|
      <span class='name'>tag</span>
 | 
						|
      <span class='type'>
 | 
						|
        (
 | 
						|
          <tt>String</tt>
 | 
						|
        )
 | 
						|
      </span>
 | 
						|
      —
 | 
						|
      <span class='desc'>the tag name without brackets </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <h3>Returns:</h3>
 | 
						|
  <ul class='return'>
 | 
						|
    <li>
 | 
						|
      <span class='type'></span>
 | 
						|
      (
 | 
						|
        <tt>Boolean</tt>
 | 
						|
      )
 | 
						|
      —
 | 
						|
      <span class='desc'>true when a non self closing tag </span>
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
    </div>
 | 
						|
    <div id='footer'>
 | 
						|
  August 12, 14 06:33:02 by
 | 
						|
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
						|
    Codo
 | 
						|
  </a>
 | 
						|
  2.0.9
 | 
						|
  ✲
 | 
						|
  Press H to see the keyboard shortcuts
 | 
						|
  ✲
 | 
						|
  <a href='http://twitter.com/netzpirat' target='_parent'>@netzpirat</a>
 | 
						|
  ✲
 | 
						|
  <a href='http://twitter.com/_inossidabile' target='_parent'>@_inossidabile</a>
 | 
						|
</div>
 | 
						|
<iframe id='search_frame'></iframe>
 | 
						|
<div id='fuzzySearch'>
 | 
						|
  <input type='text'>
 | 
						|
  <ol></ol>
 | 
						|
</div>
 | 
						|
<div id='help'>
 | 
						|
  <p>
 | 
						|
    Quickly fuzzy find classes, mixins, methods, file:
 | 
						|
  </p>
 | 
						|
  <ul>
 | 
						|
    <li>
 | 
						|
      <span>T</span>
 | 
						|
      Open fuzzy finder dialog
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <p>
 | 
						|
    Control the navigation frame:
 | 
						|
  </p>
 | 
						|
  <ul>
 | 
						|
    <li>
 | 
						|
      <span>L</span>
 | 
						|
      Toggle list view
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>C</span>
 | 
						|
      Show class list
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>I</span>
 | 
						|
      Show mixin list
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>F</span>
 | 
						|
      Show file list
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>M</span>
 | 
						|
      Show method list
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>E</span>
 | 
						|
      Show extras list
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
  <p>
 | 
						|
    You can focus and blur the search input:
 | 
						|
  </p>
 | 
						|
  <ul>
 | 
						|
    <li>
 | 
						|
      <span>S</span>
 | 
						|
      Focus search input
 | 
						|
    </li>
 | 
						|
    <li>
 | 
						|
      <span>Esc</span>
 | 
						|
      Blur search input
 | 
						|
    </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
  </body>
 | 
						|
</html> |