Skip to content

A simple package to add support for Blade SVG by Adam Wathan to Roots Sage.

License

Notifications You must be signed in to change notification settings

cdk-comp/blade-svg-sage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blade SVG for Sage

Latest Stable Version Total Downloads

Blade SVG for Sage is a wrapper for Blade SVG by Adam Wathan allowing you to easily use SVG's in your Blade templates, either as an inline SVG or SVG sprite when using Sage 9.

Requirements

Installation

Install via Composer:

$ composer require log1x/blade-svg-sage

Configuration

Use the provided configuration filter below to modify the default configuration.

add_filter('bladesvg', function () {
    return [
        'svg_path' => 'resources/svg',
        'spritesheet_path' => 'resources/svg/spritesheet.svg',
        'spritesheet_url' => '',
        'sprite_prefix' => '',
        'inline' => true,
        'class' => ''
    ];
});

Usage

Please refer to the original Blade SVG documentation for usage examples.

About

A simple package to add support for Blade SVG by Adam Wathan to Roots Sage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%