protected function parseStub( $stub, $replacements = [] )
	{
		$output = $stub;

		foreach ( $replacements as $key => $replacement )
		{
			$search = '{{' . $key . '}}';
			$output = str_replace( $search, $replacement, $output );
		}

		return $output;
	}