Add comment about `include_bytes_seq`

`include_bytes_seq` statements are required for cargo to watch child
templates. Without them, compiler won't re-run after the child templates
are updated.

cc #112
This commit is contained in:
Kogia-sima 2023-03-05 18:08:56 +09:00
parent b293756277
commit 5fe0934aba
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ fn derive_template_impl(tokens: TokenStream) -> Result<TokenStream, syn::Error>
}
fn render_once_to(self, __sf_buf: &mut sailfish::runtime::Buffer) -> std::result::Result<(), sailfish::runtime::RenderError> {
// This line is required for cargo to track child templates
#include_bytes_seq;
use sailfish::runtime as __sf_rt;