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

how to get final html generated by sculpin? #478

Open
vrkansagara opened this issue Jun 16, 2023 · 3 comments
Open

how to get final html generated by sculpin? #478

vrkansagara opened this issue Jun 16, 2023 · 3 comments

Comments

@vrkansagara
Copy link

Is there any event is there which can provide final html whic his going to serve to browser? If yes, then how can I get that one?

@beryllium
Copy link
Member

The command sculpin generate --env=prod will generate final ("static") HTML and put it into the output_prod folder.

@vrkansagara
Copy link
Author

@beryllium i know that one.
If you closely look at question then it's about how can I get final html programetcly.

@simensen
Copy link
Member

simensen commented Sep 4, 2023

@vrkansagara I'm not 100% sure, as it has been many years since I've used Sculpin to this level. However, I'd suggest maybe adding an extension and using Sculpin\Core\Sculpin::EVENT_AFTER_RUN to get the entire source set after the whole site has been processed. I believe the SourceSet should provide all sources, whether they were updated or not, but you'll have to experiment with that.

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

No branches or pull requests

3 participants