-
Notifications
You must be signed in to change notification settings - Fork 16
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
Extra docs for Statamic static site generation #22
Comments
Steve this is amazing, thank you for taking the time to write this up. I'll add it to the docs, I really really appreciate it! |
Thanks for the tip to look at this issue for a solution @joshuablum.
Hope you can point me in the right way. |
Looks like you might have forgotten to import Statamic's Try to add |
Thanks @joshuablum -- I missed that import in the example, I've added it in 👍 |
Don't worry, it's nothing more than a Facade, @stevebauman. Thanks for the great work, really appreciated! |
I am shocked... SHOOK! ... to see that these classes are not 😏 |
lmao I would rather DIE @simonhamp |
There were issues I ran into and had to resolve when using Statamic with their Static Site Generation plugin. This isn't an issue with Torchlight exactly but with how SSG is performed in the plugin.
When generating the pages via
php please ssg:generate
, views are generated with the raw Torchlight placeholders:After creating a Statamic custom page generator and forcing the page to be rendered in full by manually calling the
RenderTorchlight
middleware, we get the full HTML code snippets:Results can be seen here: https://stevebauman.ca/create-api-responses-with-eloquent-factories/
Here's the code for forcing code generation:
I hope this helps someone who is looking to do the same thing! 😄
The text was updated successfully, but these errors were encountered: