protected function getSource()
	{
		$rootDir = __DIR__ . '/..';
		$src     = '';

		// If getLogger() is not exported we use a dummy Logger that can be optimized away
		$logger = (in_array('getLogger', $this->exports)) ? 'Logger.js' : 'NullLogger.js';

		// Prepare the list of files
		$files   = glob($rootDir . '/Parser/AttributeFilters/*.js');
		$files[] = $rootDir . '/Parser/utils.js';
		$files[] = $rootDir . '/Parser/FilterProcessing.js';
		$files[] = $rootDir . '/Parser/' . $logger;
		$files[] = $rootDir . '/Parser/Tag.js';
		$files[] = $rootDir . '/Parser.js';

		// Append render.js if we export the preview method
		if (in_array('preview', $this->exports, true))
		{
			$files[] = $rootDir . '/render.js';
			$src .= '/** @const */ var xsl=' . $this->getStylesheet() . ";\n";
		}

		$src .= implode("\n", array_map('file_get_contents', $files));

		return $src;
	}
protected function getSource()
	{
		$rootDir = __DIR__ . '/..';
		$src     = '';

		// If getLogger() is not exported we use a dummy Logger that can be optimized away
		$logger = (in_array('getLogger', $this->exports)) ? 'Logger.js' : 'NullLogger.js';

		// Prepare the list of files
		$files   = glob($rootDir . '/Parser/AttributeFilters/*.js');
		$files[] = $rootDir . '/Parser/utils.js';
		$files[] = $rootDir . '/Parser/FilterProcessing.js';
		$files[] = $rootDir . '/Parser/' . $logger;
		$files[] = $rootDir . '/Parser/Tag.js';
		$files[] = $rootDir . '/Parser.js';

		// Append render.js if we export the preview method
		if (in_array('preview', $this->exports, true))
		{
			$files[] = $rootDir . '/render.js';
			$src .= '/** @const */ var xsl=' . $this->getStylesheet() . ";\n";
		}

		$src .= implode("\n", array_map('file_get_contents', $files));

		return $src;
	}
protected function getSource ( ) { $ rootDir = __DIR__ . '/..' ; $ src = '' ; // If getLogger() is not exported we use a dummy Logger that can be optimized away $ logger = ( in_array ( 'getLogger' , $ this -> exports ) ) ? 'Logger.js' : 'NullLogger.js' ; // Prepare the list of files $ files = glob ( $ rootDir . '/Parser/AttributeFilters/*.js' ) ; $ files [ ] = $ rootDir . '/Parser/utils.js' ; $ files [ ] = $ rootDir . '/Parser/FilterProcessing.js' ; $ files [ ] = $ rootDir . '/Parser/' . $ logger ; $ files [ ] = $ rootDir . '/Parser/Tag.js' ; $ files [ ] = $ rootDir . '/Parser.js' ; // Append render.js if we export the preview method if ( in_array ( 'preview' , $ this -> exports , true ) ) { $ files [ ] = $ rootDir . '/render.js' ; $ src .= '/** @const */ var xsl=' . $ this -> getStylesheet ( ) . ";\n" ; } $ src .= implode ( "\n" , array_map ( 'file_get_contents' , $ files ) ) ; return $ src ; }
Return the parser's source

@return string
Return the parser s source