tasks/bake.js
function parse( fileContent, filePath, destFile, values ) {

			var section = extractSection( fileContent );

			if( section ) {
				fileContent = processContent( section.before, values );

				if( section.inner ) {
					fileContent += replaceString( section.inner, "", "", filePath, section.attributes, filePath, destFile, values );

				} else if( section.includePath ) {
					fileContent += replaceFile( section.linebreak, section.indent, section.includePath, section.attributes, filePath, destFile, values );
				}

				fileContent += parse( section.after, filePath, destFile, values );

			} else {
				return processContent( fileContent, values );
			}

			return fileContent;
		}
function parse( fileContent, filePath, destFile, values ) {

			var section = extractSection( fileContent );

			if( section ) {
				fileContent = processContent( section.before, values );

				if( section.inner ) {
					fileContent += replaceString( section.inner, "", "", filePath, section.attributes, filePath, destFile, values );

				} else if( section.includePath ) {
					fileContent += replaceFile( section.linebreak, section.indent, section.includePath, section.attributes, filePath, destFile, values );
				}

				fileContent += parse( section.after, filePath, destFile, values );

			} else {
				return processContent( fileContent, values );
			}

			return fileContent;
		}
function parse ( fileContent , filePath , destFile , values ) { var section = extractSection ( fileContent ) ; if ( section ) { fileContent = processContent ( section . before , values ) ; if ( section . inner ) { fileContent += replaceString ( section . inner , "" , "" , filePath , section . attributes , filePath , destFile , values ) ; } else if ( section . includePath ) { fileContent += replaceFile ( section . linebreak , section . indent , section . includePath , section . attributes , filePath , destFile , values ) ; } fileContent += parse ( section . after , filePath , destFile , values ) ; } else { return processContent ( fileContent , values ) ; } return fileContent ; }
Recursivly search for bake-tags and create one file.
Recursivly search for bake - tags and create one file .