Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A full refactor is in the works for Blade SVG Sage. This will include breaking changes but allow for much better maintainability moving forward.
Changelog
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
andspritesheet_path
(now defaults to theme root).SvgFactory
and Blade directives during the initialization of theBladeSvgSage
class withinafter_setup_theme
instead of awkwardly calling the action/filter twice.sage
container.svg_path
andspritesheet_path
toresources/svg
andresources/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()
andsvg_spritesheet()
to theApp
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.BladeSvgSage
autoloading to PSR-4.composer.json
..editorconfig
and.gitignore
.