feat(dart/transform): Allow absolute urls in templates

Allow `templateUrl` to be specified as an absolute `package:` import.
This commit is contained in:
Tim Blasi
2015-06-10 12:37:22 -07:00
parent 950f2a38cd
commit a187c782aa
11 changed files with 106 additions and 9 deletions

View File

@ -14,7 +14,8 @@ class XhrImpl implements XHR {
XhrImpl(this._reader, this._entryPoint);
Future<String> get(String url) async {
var assetId = uriToAssetId(_entryPoint, url, logger, null);
var assetId = uriToAssetId(_entryPoint, url, logger, null /* span */,
errorOnAbsolute: false);
var templateExists = await _reader.hasInput(assetId);
if (!templateExists) {
logger.error('Could not read template at uri $url from $_entryPoint');