rochacbruno / marmite

Markdown makes sites - A Static Site Generator for Blogs
https://rochacbruno.github.io/marmite/
GNU Affero General Public License v3.0
340 stars 19 forks source link

Add `--init-templates` and `--start-theme` Flags #86

Closed SkySingh04 closed 5 days ago

SkySingh04 commented 6 days ago

This PR introduces two new flags, --init-templates and --start-theme, to the Marmite CLI, allowing users to initialize project templates and themes more easily. The new flags add the following functionality:

To support these new flags, two functions were added:

Both functions are currently in a new module, initializer.rs, but they contain only placeholder code for now.

Questions

Before proceeding with the complete implementation, we would like some input on how the initialize_templates and initialize_theme_assets functions should be implemented. Specifically:

  1. Template Content: What content should be included in the base.html file within the templates folder? Should it be a full HTML skeleton, or just a simple comment indicating where customization can begin?
  2. Static Assets: Should style.css and script.js in the static/ folder include specific starter content, or can they be empty placeholders?

Related Issue : #70

SkySingh04 commented 6 days ago

@rochacbruno Could you please review this and answer my doubts?

SkySingh04 commented 5 days ago

@rochacbruno Your requested changes have been made!