Skip to content

derrabus/twig-awesome-bundle

Repository files navigation

Twig Awesome Bundle

This bundle integrates the icon font Font Awesome into Twig. But instead of using CSS to render icons on the frontend, the icons are rendered as SVG images directly into the compiled Twig template.

Example

This example renders a flag icon. Please note that you should wrap the icon in a div or similar element in order to adjust its size.

<div style="height: 10em;">{% fa regular flag %}</div>

About

Renders FrontAwesome icons as SVG into Twig templates.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages