log1x/blade-svg-sage
最新稳定版本:v3.0.0
Composer 安装命令:
composer require log1x/blade-svg-sage
包简介
Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.
关键字:
README 文档
README
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.
Using Sage 10? Check out Sage SVG.
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.
Note: When calling helper functions directly, you must use the App namespace.
统计信息
- 总下载量: 76.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 75
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-09