Thanks to visit codestin.com
Credit goes to github.com

Skip to content

better solution to register pages to generate as static files#20

Merged
tesar-tech merged 5 commits into
BlazorStatic:masterfrom
junovell:master
Aug 2, 2024
Merged

better solution to register pages to generate as static files#20
tesar-tech merged 5 commits into
BlazorStatic:masterfrom
junovell:master

Conversation

@junovell

Copy link
Copy Markdown
Contributor

better solution to generate routes, this would also eliminate the need for BlazorStaticOptions.RazorPagesPaths

Pros:

  • less prone to failing
  • allows for the use of @attribute [Route(...)]
  • should be faster

Cons:

  • uses reflection

@netlify

netlify Bot commented Jul 30, 2024

Copy link
Copy Markdown

Deploy Preview for blazorstatic ready!

Name Link
🔨 Latest commit a7f170e
🔍 Latest deploy log https://app.netlify.com/sites/blazorstatic/deploys/66ace90156f2d90008fdf3db
😎 Deploy Preview https://deploy-preview-20--blazorstatic.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

- updated README.md
- drafted release blog post

@tesar-tech tesar-tech left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also shoudl rename https://github.com/tesar-tech/BlazorStatic/blob/237bacd20c6061b0293c395060d7bfd49215089e/src/BlazorStaticOptions.cs#L29 (see the one comment about naming)... And probably also remove the https://github.com/tesar-tech/BlazorStatic/blob/237bacd20c6061b0293c395060d7bfd49215089e/src/BlazorStaticOptions.cs#L38 since it has no use, because it scan the whole assembly. Could that have some implications? Can you think of an example where people don't want pages from the whole assembly? (in that case the proposed "IgnoredRazorPages" would make sense )

Comment thread src/Services/BlazorStaticService.cs Outdated
Comment thread src/Services/BlazorStaticService.cs Outdated
Comment thread src/Services/RoutesHelper.cs Outdated
Comment thread src/Services/RoutesHelper.cs Outdated
Comment thread src/Services/RoutesHelper.cs Outdated
Comment thread src/Services/RoutesHelper.cs Outdated
Comment thread src/Services/BlazorStaticService.cs
@tesar-tech

Copy link
Copy Markdown
Collaborator

I think we are done here, or do you see anything else to consider?

@junovell

junovell commented Aug 2, 2024

Copy link
Copy Markdown
Contributor Author

looks good, you can merge it

@tesar-tech tesar-tech merged commit 2d62ad4 into BlazorStatic:master Aug 2, 2024
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.

2 participants