-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Add deferred template blocks #8086
Comments
This seems promising but to this day I fail to find any other use case than Backlinks, except maybe info about the build on the In any case, there should be a system for singling out methods available only inside While the word defer works great in a template context, it does not work so great as a page method, I'm just using it as an example. |
What you propose above is a variant of
Not the greatest example. But the The more I think about this, the more I like it. |
I see! Then I can see more present benefits and can't wait for the future ones! |
Thinking a little about this, we cannot "invent new syntax" (because of code formatters etc.), so what I now think makes most sense is to use the
Where |
I like this. It would be great to have. |
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
Closes gohugoio#8086 Closes gohugoio#12589
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
.GetBacklinks
) #8077.resources.PostProcess
There are certain things we would want to do in Hugo but cannot because it's either 1) Very expensive (build time) to do or 2) Impossible (ref.
resources.PostProcess
and CSS purging which needs the build to complete before it can do its job).Note that I'm not saying that would be easy to implement, I just say that it would be cool/useful.
What I'm suggesting would be a way to deffer template processing until after the build, somehow storing away the
dot
context passed to it, e.g.:The
BackLinks
above is just an example of a thing that we cannot effectively calculate upfront./cc @regisphilibert and gang.
The text was updated successfully, but these errors were encountered: