summary refs log tree commit diff
path: root/src/librustdoc/html/render/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-10 04:41:03 +0000
committerbors <bors@rust-lang.org>2021-10-10 04:41:03 +0000
commitc1cb97481a633bdfdf3d6b57c6dcebfdfadbcfdf (patch)
tree8ec060353b3008ae2cc1f83cdb07c20609ad41a2 /src/librustdoc/html/render/mod.rs
parent6928fafe06e4ab29317f75194e1bf67c119dccdc (diff)
parentd0a33fb175fad3b1e9bbe4a6ca3fe41b1aa242d6 (diff)
downloadrust-c1cb97481a633bdfdf3d6b57c6dcebfdfadbcfdf.tar.gz
rust-c1cb97481a633bdfdf3d6b57c6dcebfdfadbcfdf.zip
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.
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
-rw-r--r--src/librustdoc/html/render/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 4f189159747..dc5aec3b084 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -31,6 +31,7 @@ mod tests;
 mod context;
 mod print_item;
 mod span_map;
+mod templates;
 mod write_shared;
 
 crate use context::*;