Log1x / blade-svg-sage

A simple package to add support for Blade SVG by Adam Wathan to Roots Sage.
MIT License
72 stars 13 forks source link

Inline markup? #10

Closed strarsis closed 6 years ago

strarsis commented 7 years ago

Is it possible to inject extra SVG/HTML markup into the SVG to be inlined? This would allow to add text and other dynamically generated markup and let the SVG handle the effect / adjust its dimensions to it.

strarsis commented 6 years ago

@Log1x: Are there any plans for this in near future?

Log1x commented 6 years ago

Enable with:

add_filter('bladesvg_inline', function () {
    return true;
});

and use the docs seen here to inject classes, ID's, etc.