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:
commit
c1cb97481a
6 changed files with 113 additions and 55 deletions
|
@ -31,6 +31,7 @@ mod tests;
|
|||
mod context;
|
||||
mod print_item;
|
||||
mod span_map;
|
||||
mod templates;
|
||||
mod write_shared;
|
||||
|
||||
crate use context::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue