const nunjucks = require('nunjucks');
const env = nunjucks.configure();
// Add the extension to your environment
env.addExtension('Octicon', require('nunjucks-octicons-extension'));
// Simple usage
env.renderString('Meet Hubot! {% octicon "hubot" %}')
// Or pass some arguments
env.renderString('Meet Hubot! {% octicon "hubot", height="64", width="64", class="m-1" %}')
A Nunjucks extension for using Octicons
License
JasonEtco/nunjucks-octicons-extension
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Nunjucks extension for using Octicons
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published