nepttune / macro
Latte macro for fontawesome
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 1 602
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/nepttune/macro
Requires
- latte/latte: ^2.4 | ^3.0
README
🔧 Latte macro for fontawesome
Introduction
This package contains set of useful Latte macros.
{icon}which renders as font awesome 5 icon.{iconFA4}which renders as font awesome 4 icon.
Depenencies
How to use
- Register
\Nepttune\Latte\IconMacroas macro in cofiguration file. - Use icon macro in latte templates.
{icon user}renders as font awesome user icon.- FA5 divided icons into packges of different types (solid, regular, light, brand). Specify desired type with parameter
type(s,r,l,b), default issas solid.{icon facebook, type => 'b'} - Icons are fixed width by default, you can disable it by passing
fwparater withfalsevalue.
- FA5 divided icons into packges of different types (solid, regular, light, brand). Specify desired type with parameter
Example configuration
latte:
macros:
- Nepttune\Latte\IconMacro::install