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

staticDir extension support ⚡ #181

Closed
Ethosa opened this issue Nov 21, 2023 · 0 comments
Closed

staticDir extension support ⚡ #181

Ethosa opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request ssg ssr

Comments

@Ethosa
Copy link
Contributor

Ethosa commented Nov 21, 2023

Well old staticDir syntax was:

# directory is route and directory
staticDir "directory"

# directory at route /path
staticDir "/path" -> "directory"

New syntax add file extension support:

# Path -> directory
staticDir "/public" -> "testdir"

# path -> directory ~ extensions
# On this path user can see only HTML, JS and CSS files
staticDir "/pubdir" -> "testdir" ~ "html,js,css"

# Path and directory ~ extensions
staticDir "/templates" ~ "html,js,css"
@Ethosa Ethosa added enhancement New feature or request ssg ssr labels Nov 21, 2023
@Ethosa Ethosa self-assigned this Nov 21, 2023
@Ethosa Ethosa closed this as completed Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ssg ssr
Projects
None yet
Development

No branches or pull requests

1 participant