![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
BASSG (Basic Agile Static Site Generator) is a simple and easy to use static site generator for quickly creating static websites using Jinja2 templating and Markdown.
Features:
$ pip install bassg
I would recommend installing BASSG in a virtual environment. This allows you to access BASSG using the "bassg" entry point:
$ bassg --help
Otherwise, BASSG can be accessed with python directly:
$ python -m bassg --help
If you need help with a command, run:
$ bassg <command> --help
to see the help menu for that command.
$ bassg create <project_name>
This will create the folder structure in the current directory (root):
📦project_name
┣ 📂build
┃ ┣ 📂assets
┃ ┣ 📂config
┃ ┣ 📂markdown
┃ ┗ 📂templates
┗ 📂site
$ bassg generate <project_name>
This will compile all of the html files in the build/ directory using Jinja2 and Markdown
Place Jinja2 templates in the templates/ directory. Any html files in the base build/ directory that include these templates will be rendered accordingly.
If you want to use markdown in your site, create a file_name.md file with the same file name as the html page you want to insert it in. Place this file in the build/markdown/ directory. The parsed markdown data will be passed into the Jinja2 parser as 'markdown'. If you wish to have multiple markdown files per page, you can use the naming convention:
file_name0.md
file_name1.md
...
These can then be accesed in the file_name.html
file as markdown[0], markdown[1], etc.
You can create (optional) configuration files for individual pages with a similar syntax to creating markdown files. Any file_name.json
files with the same file name as an html page in the build/ directory will be passed in through the Jinja2 parser.
For example:
file_name.json
:
{
"title": "Documentation",
"date": "08/22/2021",
"language": "English",
"folder_struct": "docs"
}
All of these variables will be passed into the Jinja2 parser for file_name.html
.
The special attribute folder_struct
tells BASSG which folder to place the page in when it generates the site. In this example, the generated file_name.html
file will be placed in the site/docs/ folder. This can be used to easily organize the pages of your site.
FAQs
BASSG - Basic Agile Static Site Generator
We found that bassg 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.