Given a file URI, let's provide a helper on the existing File class to convert it to a data URI.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3179916-file-data-uri.patch | 3.1 KB | dave reid |
| #3 | 3179916-file-data-uri-with-twig-extension.patch | 4.71 KB | dave reid |
| #2 | 3179916-file-data-uri.patch | 2.88 KB | dave reid |
Comments
Comment #2
dave reidComment #3
dave reidThis also adds a Twig extension supporting a new file_data_uri() function.
Comment #5
dave reidOkay let's try without the Twig extension for now.
Comment #7
dave reidCommitted #5 to 8.x-1.x.