Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Statix is a static website generator.
Statix uses Swig as the default templating engine (if you're familiar with Django, Jinja or Twig, you'll feel right at home).
The beauty of Statix is that it supports a lot of templating engines, so you can use whatever you want! (Thanks to consolidate.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 by doing statix server -p 3000
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.
These are the currently supported engines:
FAQs
Static website generator. Template Engine agnostic
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.