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:
parent
b293756277
commit
5fe0934aba
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue