You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working with this crate trying to think of how to log/serialize the objects being rendered into a view (for debugging), and I noticed the code implementing the macro had attributes near where the struct for each template gets created.
I tried it out, and it looks like it's possible to do something like:
It wasn't immediately obvious to me that each entry in define! behaves more or less like struct SomeTemplate {}. I think that's pretty awesome functionality that the docs could highlight.
The text was updated successfully, but these errors were encountered:
I was working with this crate trying to think of how to log/serialize the objects being rendered into a view (for debugging), and I noticed the code implementing the macro had
attributes
near where thestruct
for each template gets created.I tried it out, and it looks like it's possible to do something like:
It wasn't immediately obvious to me that each entry in
define!
behaves more or less likestruct SomeTemplate {}
. I think that's pretty awesome functionality that the docs could highlight.The text was updated successfully, but these errors were encountered: