Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
django-ember-precompile
Advanced tools
ember.js precompiler for projects that use the django compressor
ember.js precompiler for projects that use the django compressor
##Why did you write another precompiler npm module?
##How do I get started then?
First you need to install node.js if you have not already
Install the npm module
npm install django-ember-precompile
Add django compressor to your django web project
pip install -r django_compressor
Register a type to have the compressor fire off the precompile step (in your settings.py)
COMPRESS_PRECOMPILERS = (
('text/x-handlebars', 'node node_modules/django-ember-precompile/bin/django-ember-precompile {infile}'),
)
Finally in your html you need to reference the uncompiled handlebars templates
{% load staticfiles %}
{% load compress %}
{% compress js %}
<script src="{% static 'script/app/templates/foo.handlebars' %}" type="text/x-handlebars"></script>
{% endcompress %}
This npm module makes a few assumptions to correctly register the template name with ember.js
1.) Each template must have a file extension of "handlebars"
2.) Each template must reside under a root "templates" directory
##Development
To run the tests
cd tests
./runner.sh
FAQs
ember.js precompiler for projects that use the django compressor
The npm package django-ember-precompile receives a total of 8 weekly downloads. As such, django-ember-precompile popularity was classified as not popular.
We found that django-ember-precompile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.