John-priv / con2gen

Another Static Site Generator --> Currently planned to be markdown based/modular
0 stars 0 forks source link

Con2Gen

Another Static Site Generator --> used to generate content pages without the need to write code (after the generator is set up).

Currently planned to be markdown based, with modular/optional sections.

Design is currently WIP; everything in this document is subject to change

Original Notes:

General Process:

Possible idea:

WIP Design Notes:

The main idea for this project is that a user (content writer) should not care about the underlying code when creating a new page (review, guide, recipe, etc).

For the first iteration of this project, only terminal commands will be used for generation --> no UI will be available. This means that users will write their files (either markdown or section files depending on the approach). These files will be compiled to match the template HTML/CSS/JS

Two ideas for making a page for a cooking website:

Option 1, Templated Markdown, Sections:

Option 2, Templated Markdown, Single File:

Advantages over markdown sections:

Disadvantages over markdown sections:

Option 3, Hybrid Templated Markdown:

This option is designed to be a hybrid of the two approaches. Each content page will have exactly two files that the author will need to edit: Content.md and Variables.md

Example Empty Hybrid Content.md File

Example of what an untouched content file looks like for a template that contains the sections "Description", "Instructions", "Ingredients", "Nutrition", "Images", and "Comments". For this example "Nutrition" is coded and static (at compile time), while "Comments" is a coded section that is dynamic and calls a database in production.

NOTE: IMAGE STORAGE LOCATION IS STILL TBD

#Section.Description

#Section.Instructions

#Section.Ingredients

#Section.Nutrition
<Section.GeneratedSection>

#Section.Images

#Section.Comments
<Section.GeneratedSection>

Example Empty Variables.md File

TODO: ADD THIS