src/Support/Path.php
/**
	 * Compiles an array of path nodes (from the parse() method) back into a path. The returned path always begins
	 * with a forward slash and will only end with a forward slash if the last node is a directory.
	 *
	 * @param array $nodes
	 * @return string
	 */
Compiles an array of path nodes (from the parse() method) back into a path. The returned path always begins
with a forward slash and will only end with a forward slash if the last node is a directory.

@param array $nodes
@return string
Compiles an array of path nodes ( from the parse () method ) back into a path . The returned path always begins with a forward slash and will only end with a forward slash if the last node is a directory . @param array $nodes @return string
public static function compile(array $nodes) {
		$path = '/';
		foreach ($nodes as $node) {
			$path .= $node->name;
			if ($node->directory) {
				$path .= '/';
			}
		}
		return $path;
	}
public static function compile ( array $ nodes ) { $ path = '/' ; foreach ( $ nodes as $ node ) { $ path .= $ node -> name ; if ( $ node -> directory ) { $ path .= '/' ; } } return $ path ; }
Compiles an array of path nodes (from the parse() method) back into a path.
Compiles an array of path nodes ( from the parse () method ) back into a path .