1
Fork 0

Auto merge of #89695 - jsha:more-templates, r=GuillaumeGomez

Move top part of print_item to Tera templates

Part of #84419.

This moves the first line of each item page (E.g. `Struct foo::Bar .... 1.0.0 [-][src]` into a Tera template.

I also moved template initialization into its own module and added a small macro to reduce duplication and opportunity for errors.
This commit is contained in:
bors 2021-10-10 04:41:03 +00:00
commit c1cb97481a
6 changed files with 113 additions and 55 deletions

View file

@ -31,6 +31,7 @@ mod tests;
mod context;
mod print_item;
mod span_map;
mod templates;
mod write_shared;
crate use context::*;