2017 © Pedro Peláez
 

library twig-awesome-bundle

Inline FontAwesome icons into Twig templates.

image

derrabus/twig-awesome-bundle

Inline FontAwesome icons into Twig templates.

  • Friday, December 29, 2017
  • by derrabus
  • Repository
  • 1 Watchers
  • 2 Stars
  • 141 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Twig Awesome Bundle

This bundle integrates the icon font Font Awesome 6 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., (*1)

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., (*2)

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

The Versions