Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
ember-inline-svg
Advanced tools
Displays SVG images inline.
{{inline-svg "path/to/file"}}
This will display the SVG found at /public/images/path/to/file.svg
(see below on how to change this).
You can specify a class for the element like so:
{{inline-svg "my-svg" class="foo"}}
By default the addon expects to find your SVG images at /public/images/
, but you can change this
by setting the svg.paths
option in your application's Brocfile.js
var app = new EmberApp({
svg: {
paths: [
'public/images',
'app/svgs'
]
}
});
SVGs are optimized by svgo by default.
You can configure this by setting the svg.optimize
options:
var app = new EmberApp({
svg: {
optimize: {
plugins: [
{ removeDoctype: false },
{ removeTitle: true },
{ removeDesc: true }
]
}
}
});
Alternatively, you can disable it completely by setting this to false:
var app = new EmberApp({
svg: {
optimize: false
}
});
git clone
this repositorynpm install
bower install
ember server
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
v0.1.0
.svg
extension../public/images
to ./public
.FAQs
Ember CLI addon to render SVG images inline
The npm package ember-inline-svg receives a total of 4,428 weekly downloads. As such, ember-inline-svg popularity was classified as popular.
We found that ember-inline-svg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.