The Octicons component theme provides a Twig macro to use Primer Octicons icons in Cecil templates.
- A Cecil website
composer require cecil/theme-octiconsOr download the latest archive and uncompress its content in
themes/octicons.
{% import 'macros/octicons.twig' as octicons %}
{{ octicons.svg('<icon>', <16|24>, '<class>') }}sizeis optional (default:24)classis optional- If the icon isn't available in the requested size, the
questionicon is rendered instead (size16).
Install dependencies, then copy the Octicons data file (from @primer/octicons) to the data folder:
npm install
npm run buildThe demo/ folder contains a website listing all the icons, using the theme under development:
php demo/link.php
cecil serve demo