12 lines
		
	
	
		
			394 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			394 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
var fs = require('fs');
 | 
						|
var path = require('path');
 | 
						|
 | 
						|
module.exports = read;
 | 
						|
function read(file: string) {
 | 
						|
  var content = fs.readFileSync(
 | 
						|
      path.join('tools/broccoli/html-replace', file + '.html'), {encoding: 'utf-8'});
 | 
						|
  // TODO(broccoli): we don't really need this, it's here to make the output match the
 | 
						|
  // tools/build/html
 | 
						|
  return content.substring(0, content.lastIndexOf('\n'));
 | 
						|
}
 |