Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
mattpuchlerz-liquid_premailer
Advanced tools
= Liquid Premailer
Developed by Matt Puchlerz, The Killswitch Collective (http://killswitchcollective.com) 02.10.2009
As awesome as the Premailer gem is, it didn't help with making Liquid templates any easier. My idea was to create a simple, consistent method by which you could write your markup, style it, premailer-it, and have the associated Liquid calls right there as well.
Using liquid_premailer on the command line will convert your source HTML file, filled with dummy data and commented-out Liquid calls, into ready-to-go Liquid email templates.
== Examples
=== Using the liquid_premailer Command
$ liquid_premailer myfile.html
...will output myfile_liquid.html. That's it!
=== Dummy Data and Hidden Liquid Output
h1 { font-family: verdana, sans-serif; font-size: 20px; }...will become...
=== Hidden Liquid Tags
Man, HTML emails are a pain to work with.
...will become...
{% if email.is_a_pain %}
Man, HTML emails are a pain to work with.
{% endif %}=== Complex Example
p { font-family: verdana, sans-serif; font-size: 12px; } span.phone { color: red; }
123-456-7890
098-765-4321 (mobile)
...will become...
{% if sender.phone != blank %}
{{ sender.phone }}
{% endif %}
{% if sender.mobile_phone != blank %}
{{ sender.mobile_phone }} (mobile)
{% endif %}
== Requirements, installation and use
First, download and install the Premailer gem from http://code.dunae.ca/premailer.web/local.html.
Then install the liquid_premailer gem:
$ sudo gem install mattpuchlerz-liquid_premailer
liquid_premailer should now be available in your path.
FAQs
Unknown package
We found that mattpuchlerz-liquid_premailer 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.