-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(svg-loader): new package #54
base: next
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
لطفاً اسم پکیج svg-loader باشه
```js | ||
// .eleventy.config.js | ||
|
||
const {iconLoader} = require('@alwatr/svg-loader'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
* @param {string} customClass custom class added to svg span container | ||
* @returns {Promise<string>} svg content inside of a span | ||
*/ | ||
async function iconLoader(icon, customClass = '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css?!
function name?!
به نظرم یک پکیج باید اینجا باشه که یک محتوای متنی رو از داخل پکیج لود کنه با قابلیت کش |
Description