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

Added index.html pattern #256

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Added index.html pattern #256

merged 1 commit into from
Mar 2, 2025

Conversation

wrabit
Copy link
Owner

@wrabit wrabit commented Mar 2, 2025

This PR introduces ability to choose a default component when calling a directory path by using an index.html.

Before:

- cotton
  - comp
    - header.html
    - main.html


<c-comp.main>
  <c-comp.header />
</c-comp.main>

After:

- cotton
  - comp
    - header.html
    - index.html


<c-comp>
  <c-comp.header />
</c-comp>

@wrabit wrabit merged commit 44c8360 into main Mar 2, 2025
1 check passed
@wrabit wrabit deleted the index_file_pattern branch March 2, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant