DEV Community

Cover image for Rust Static Site Generator (RSSG Release 0.1.0)
Antonio-Bennett
Antonio-Bennett

Posted on • Edited on

3

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

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay