Issue Feature Closed

#93550SVG Inline ViewHelper

Marcus Schwemer 02/19/21, 14:03 updated 10/21/24, 06:32

Description

Currently it is possible to render inline svgs via a the cObject viewhelper and a cObject of type SVG.

It would be more convenient to have a separate SVG inline viewhelper, which supports the current and not deprecated attributes of svg as arguments.

The syntax would look like

   <f:svgInline source="<path/to/your/svg.svg>" height="200" width="200" viewBox="0 0 100 100" class="my_css_class" />

I would be happy to implement it, if you think, that this is a good idea.

Reviews 1