eleventy:optional
attribute on Transform method tied to failOnError global option
#259
Labels
enhancement
New feature or request
Milestone
<img eleventy:optional>
: removessrc
attribute when it has an error.<img eleventy:optional="keep">
: leave as-is, this would likely result in an error when a user visits your page (unless you are handling it independently).<img eleventy:optional="placeholder">
: replacessrc
with a transparent png data URI.Related to #225 but with the transform method, make a specific image optional (
failOnError: false
)The text was updated successfully, but these errors were encountered: