]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #86157 - jsha:tera, r=jyn514,GuillaumeGomez
authorbors <bors@rust-lang.org>
Mon, 21 Jun 2021 09:40:34 +0000 (09:40 +0000)
committerbors <bors@rust-lang.org>
Mon, 21 Jun 2021 09:40:34 +0000 (09:40 +0000)
Use Tera templates for rustdoc.

Replaces a format!() call in layout::render with a template
expansion. Introduces a `templates` field in SharedContext so parts
of rustdoc can share pre-rendered templates.

This currently builds in a copy of the single template available, like
with static files. However, future work can make this live-loadable with
a perma-unstable flag, to make rustdoc developers' work easier.

Part of #84419.

Demo at https://hoffman-andrews.com/rust/tera/std/string/struct.String.html.

1  2 
Cargo.lock

diff --cc Cargo.lock
Simple merge