
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Statix is a minialistic static website generator.
Statix uses Swig as the default templating engine (if you're familiar with Django templates, Jinja or Twig, you'll feel right at home).
However, the beauty of Statix is that it supports a large amount of templating engines, so you can use whatever you want! (Thanks to consoldiate.js).
$ npm install -g statix
Statix is super minimalistic and thus only has 3 commands.
$ statix new
$ statix build
$ statix server
$ statix new project-name
$ cd project-name
You can run statix new
from anywhere. Running statix new
will generate a new project-name
folder in the current directory. The generated folder will have a statix.js
file, and a couple
other files as an example.
Statix projects only need a statix.js
file at the root of the directory. After you're familiar with Statix, you'll probably want to create a template folder that has a more tailored statix.js
file and other boilerplate type stuff and instead of using statix new
you'll just
use that folder as a base for your projects.
If you open statix.js, you can see all the options available. Comments are included next to each property.
cd
into project name
and run statix build
. Compare the source
and deploy
directories to get an idea of what Statix is doing.
You can run statix build
in any directory that has a statix.js
file.
Statix has a local webserver, for convenience. This means that you can view your project without having to rebuild everytime.
$ cd project-name
$ statix server
By default Statix, binds the webserver to port 8000. You can change this in the statix.js
file.
Go into statix.js
and change
template_engine : "swig",
to
template_engine : "jade",
or
template_engine : "hogan",
Yep! It's that easy!
Note: Only template engines supported by consolidate.js will work. If you want support for another template engine, fork consolidate.js and issue a pull request.
FAQs
Static website generator. Template Engine agnostic
The npm package statix receives a total of 0 weekly downloads. As such, statix popularity was classified as not popular.
We found that statix 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.