\Granola\svg(); will return the svg markup that exists inside an svg file from the assets/images directory. \Granola\svg(); does not require the file extension be specified as it will be added automatically.

\Granola\svg() requires one parameter that specifies the name of the svg to load, and accepts a second optional parameter, an array of attributes and their values to output on the img tag.

<?php echo \Granola\svg('example'); ?>

// will result in
<svg ...>...</svg>

As mentioned, the second parameter allows for attributes to be applied to the image tag.