A simple package to add support for Blade SVG by Adam Wathan to Roots Sage.
BladeSvgSage
class with a more appropriate naming scheme.config.php
for housing the default configuration values.bladesvg
, that accepts an array of values that get merged with the defaults.svg_path
and spritesheet_path
(now defaults to theme root).SvgFactory
and Blade directives during the initialization of the BladeSvgSage
class within after_setup_theme
instead of awkwardly calling the action/filter twice.sage
container.svg_path
and spritesheet_path
to resources/svg
and resources/svg/spritesheet.svg
respectively to not only conform with vanilla Blade SVG and Laravel standards but remove the unnecessary issues that arise from the build process and BrowserSync.svg_image()
and svg_spritesheet()
to the App
namespace for use globally throughout Sage.empty()
conditionals for $icon
on methods where it is being used for a more graceful return instead of erroring.composer.json
..editorconfig
and .gitignore
.Fixed pathing issues courtesy of @strarsis.
Full rewrite to act as a wrapper rather than a standalone plugin.