DEV Community

Antonio-Bennett
Antonio-Bennett

Posted on

Rust Static Site Generator (RSSG Release 0.1.0)

This assignment was assigned to us with the task of creating a static site generator using any language of choice. The tool converts files from txt format to html files. For this assignment I used Rust :)

Features

Version

By using the -v or --version flag the user is able to see the version of rssg

Help

By using the -h or --help flag user is able to see help information

Input

The program accepts inputs from the user using the -i or --input flag. Acceptable inputs are files and or folders

Output

Output is stored in a current directory in folder named dist

Formated HTML

Paragraphs are outputted in a formatted and clean way

Title Substitution

By having the first line as title with 2 empty lines following. A title tag and h1 is generated automatically in the html output

Demo

image

is converted to

image

USAGE

image

Github

https://github.com/Antonio-Bennett/rssg

Discussion (0)