| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dev_compiler.src.codegen.html_codegen; | 5 library dev_compiler.src.codegen.html_codegen; |
| 6 | 6 |
| 7 import 'package:html5lib/dom.dart'; | 7 import 'package:html/dom.dart'; |
| 8 import 'package:html5lib/parser.dart' show parseFragment; | 8 import 'package:html/parser.dart' show parseFragment; |
| 9 import 'package:logging/logging.dart' show Logger; | 9 import 'package:logging/logging.dart' show Logger; |
| 10 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
| 11 | 11 |
| 12 import 'package:dev_compiler/src/dependency_graph.dart'; | 12 import 'package:dev_compiler/src/dependency_graph.dart'; |
| 13 import 'package:dev_compiler/src/options.dart'; | 13 import 'package:dev_compiler/src/options.dart'; |
| 14 import 'package:dev_compiler/src/utils.dart' show colorOf, resourceOutputPath; | 14 import 'package:dev_compiler/src/utils.dart' show colorOf, resourceOutputPath; |
| 15 | 15 |
| 16 import 'js_codegen.dart' show jsLibraryName, jsOutputPath; | 16 import 'js_codegen.dart' show jsLibraryName, jsOutputPath; |
| 17 | 17 |
| 18 /// Emits an entry point HTML file corresponding to [inputFile] that can load | 18 /// Emits an entry point HTML file corresponding to [inputFile] that can load |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 /// Convert the outputPath to include the hash in it. This function is the | 97 /// Convert the outputPath to include the hash in it. This function is the |
| 98 /// reverse of what the server does to determine whether a request needs to have | 98 /// reverse of what the server does to determine whether a request needs to have |
| 99 /// cache headers added to it. | 99 /// cache headers added to it. |
| 100 _addHash(String outPath, String hash) { | 100 _addHash(String outPath, String hash) { |
| 101 return path.join('cached', hash, outPath); | 101 return path.join('cached', hash, outPath); |
| 102 } | 102 } |
| 103 | 103 |
| 104 final _log = new Logger('dev_compiler.src.codegen.html_codegen'); | 104 final _log = new Logger('dev_compiler.src.codegen.html_codegen'); |
| OLD | NEW |