Skip to content

derive: implement template attribute blocks#337

Merged
GuillaumeGomez merged 4 commits intoaskama-rs:masterfrom
Kijewski:pr-blocks
Feb 8, 2025
Merged

derive: implement template attribute blocks#337
GuillaumeGomez merged 4 commits intoaskama-rs:masterfrom
Kijewski:pr-blocks

Conversation

@Kijewski
Copy link
Copy Markdown
Member

@Kijewski Kijewski commented Feb 8, 2025

The new attribute blocks is feature-gated because it depends on syn/full, which we don't need otherwise.

The implementation is quite big (8 files changed, 269 insertions(+), 9 deletions(-)), but also reasonably self-contained, so I'm still happy. :)

Todos:

  • add documentation

Resolves #328.

@Kijewski Kijewski force-pushed the pr-blocks branch 2 times, most recently from ecf1210 to 45443c5 Compare February 8, 2025 01:01
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Nice, thanks!

@GuillaumeGomez GuillaumeGomez merged commit 77e846f into askama-rs:master Feb 8, 2025
37 checks passed
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Arf, didn't realize the doc was missing, was too excited about the changes. ><

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.

Generate methods to render each Block independently?

2 participants