Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
cagen is a static site generator intented for cmpalgorithms project. So it's very rare you are interested in that. Although you can use it as any other static site generator.
The software is distributed under GPL 2-only license.
It assumes your documents are written with markdown syntax. It is capable of convert those documents to any other format, using pandoc (specifically pypandoc wrapper) and Mako templating system.
The reason to use "external" templating system instead of built-in pandoc template system is because pandoc templates are not capable of make conditions with values (something like $if(author=='me') Print full name here $endif$
).
The program just converts markdown files to HTML ones by default in the same directory. Unlike many other static site generators, there is no predefined structure by default: no assets
directory neither site
directory. By default, all generated files are in the same directory than the source files. Obviously, you can modify it if you want.
We provide:
cagen
) for convert documentscagen-make
to generate a Makefile to convert automatically all markdown files to HTML ones.The software is implemented in python because it's easy to program (I'm very language-neutral). If you want some really fast static site generator, be free to fork the project and program with any compiled language.
You can install via pip:
pip install cagen
If you are running ArchLinux or any Arch derivative ditribution, you can use this PKGBUILD to make a pacman package.
Basic use is:
cagen sourcefile.md generatedfile.html template.tmpl
where
sourcefile.md
is Markdown filegeneratedfile.html
is the HTML5 filetemplate.tmpl
is Mako template fileSee cagen --help
for more options.
This tool is some kind of low-level tool. If you want some more higher-level one to automatically converts all markdown files to corresponding HTML5 files, we provide the cagen-make
script (see above). The steps are:
cagen-make --init
It creates Makefile
make
It automatically convert all markdown files to HTML5 ones using templates/schema.tmpl
Mako template. You can modify it editing Makefile
.
FAQs
A static site generator for cmpalgorithms project
We found that cagen demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.