Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom static folders #207

Open
rochacbruno opened this issue Jan 20, 2025 · 1 comment
Open

Custom static folders #207

rochacbruno opened this issue Jan 20, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers MEDIUM

Comments

@rochacbruno
Copy link
Owner

Discussed in #206

Originally posted by forresto January 20, 2025
I have a small web toys at URLs like mysite.com/myapp. Is it possible to add custom static directories to be copied over? It wouldn't need to be templated, it would just work like the media directory.

myblog/
   |_ content/
         |_ about.md
         |_ hello-world.md
         |_ media/
             |_ myphoto.png
         |_ myapp/
             |_ index.html
             |_ myapp-creative-code-fun.js
```</div>
@rochacbruno
Copy link
Owner Author

The way this must work is:

On marmite.yaml

extra:
  static_folders:  # relative to the input folder (root of project)
    - content/myapp

Then, marmite when copying static files to output_folder will also copy the listed folders

@rochacbruno rochacbruno added enhancement New feature or request good first issue Good for newcomers MEDIUM labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers MEDIUM
Projects
None yet
Development

No branches or pull requests

1 participant