-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Codecov Report
@@ Coverage Diff @@
## master #529 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 51 51
Lines 1139 1139
=====================================
Hits 1139 1139
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, but do we really need the config?
If we want to enable #523 without disabling single SVG icon files at the same time, I thought a config would be the least intrusive/breaking way to have both. But I'm open for alternative solutions. |
Ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this really needed?
- even with the config, you can only change so much. but not the tag name (e.g. if you wanted
img
icons) - a helix-pages user would not be able to change this
- I think that using action params for controlling the output is suboptimal and not scalable.
As for the configurability, we should find a way for the developper to extend the makehtml
step.
maybe with pipe.configure('html').getHandler('icon').options(....)
. I sure we find a better way :-)
As for helix-pages, I think this should be solvable via the markup.yaml
. see #516
maybe:
markup:
icons:
match: svg.icon
replace: '<img src="/designs/pics/${e.data-value}.png">'
I agree that we'll need a solution that works for helix-pages. Closing this PR. |
Proposal to enable #523 without breaking backward compatibility.