public IEnumerable<AssetFile> Write(AssetPath asset) { if (asset.IsImage()) { return writeBinary(asset); } // TODO -- have to deal with the [package]:scripts/ // think it'll just be testing return writeTextualAsset(asset); }
public void WriteContent(IEnumerable<string> routeParts) { var path = new AssetPath(routeParts); if (path.IsImage()) { _images.WriteImageToOutput(path.ToFullName()); } else { // TODO -- have to deal with the [package]:scripts/ // think it'll just be testing _executor.Execute(path, (contents, files) => { _caching.CacheRequestAgainstFileChanges(files.Select(x => x.FullPath)); _writer.Write(files.First().MimeType, contents); }); } }