2017 © Pedro Peláez
 

package sage-svg

WordPress package to enable a blade directive to use SVG images inline with Sage 9

image

josh-taylor/sage-svg

WordPress package to enable a blade directive to use SVG images inline with Sage 9

  • Wednesday, June 28, 2017
  • by josh-taylor
  • Repository
  • 1 Watchers
  • 5 Stars
  • 965 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 45 % Grown

The README.md

Sage SVG

Easily use SVG images in your Sage 9 Blade templates., (*1)

This repository is a wrapper for Adam Wathan's Blade SVG for Laravel, so a lot of the concepts from that repository are the same., (*2)

Installation

You can install this package via Composer by running this command in the root of your Sage 9 installation., (*3)

composer require josh-taylor/sage-svg

Getting Started

The package will automatically register a blade directive to inline your SVGs., (*4)

Place all your SVGs inside resources/assets/icons in your Sage 9 installation and you are good to go. Recommend to run all your SVGs through SVGO first!, (*5)

<a href="/settings">
    @svg('cog', 'icon-lg') Settings
</a>


<a href="/settings">
    <svg class="icon icon-lg" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
        <!-- ... -->
    </svg>
</a>

For more advanced usage you can check out Adam's repository., (*6)

The only thing this libary does not support at the moment is non-inline SVG. But this is better anyway right?, (*7)

Credits

Most of the work of this repository is down to Adam Wathan. This is just a wrapper to get it work with Sage 9 blade templates., (*8)

The Versions

28/06 2017

dev-master

9999999-dev https://github.com/josh-taylor

WordPress package to enable a blade directive to use SVG images inline with Sage 9

  Sources   Download

MIT

The Requires

 

wordpress

27/06 2017

0.1.0

0.1.0.0 https://github.com/josh-taylor

WordPress package to enable a blade directive to use SVG images inline with Sage 9

  Sources   Download

MIT

The Requires

 

wordpress