src/generators/template/builder.js
function parseNode(sourceNode, sourceFile, sourceCode, state) {
  // static nodes have no bindings
  if (isStaticNode(sourceNode)) return [nodeToString(sourceNode), []]
  return createDynamicNode(sourceNode, sourceFile, sourceCode, state)
}
function parseNode(sourceNode, sourceFile, sourceCode, state) {
  // static nodes have no bindings
  if (isStaticNode(sourceNode)) return [nodeToString(sourceNode), []]
  return createDynamicNode(sourceNode, sourceFile, sourceCode, state)
}
function parseNode ( sourceNode , sourceFile , sourceCode , state ) { // static nodes have no bindings if ( isStaticNode ( sourceNode ) ) return [ nodeToString ( sourceNode ) , [ ] ] return createDynamicNode ( sourceNode , sourceFile , sourceCode , state ) }
Parse a node trying to extract its template and bindings
@param   {RiotParser.Node} sourceNode - any kind of node parsed via riot parser
@param   {stiring} sourceFile - source file path
@param   {string} sourceCode - original source
@param   {BuildingState} state - state representing the current building tree state during the recursion
@returns {Array} array containing the html output and bindings for the current node
Parse a node trying to extract its template and bindings