|
@@ -241,7 +241,10 @@ impl<'a> ToTokens for TemplateRenderer<'a> {
|
|
// Render and release the mutable borrow on context
|
|
// Render and release the mutable borrow on context
|
|
let roots = quote! { #( #root_printer ),* };
|
|
let roots = quote! { #( #root_printer ),* };
|
|
let node_printer = &context.dynamic_nodes;
|
|
let node_printer = &context.dynamic_nodes;
|
|
- let dyn_attr_printer = &context.dynamic_attributes;
|
|
|
|
|
|
+ let dyn_attr_printer = context
|
|
|
|
+ .dynamic_attributes
|
|
|
|
+ .iter()
|
|
|
|
+ .map(|attrs| AttributeType::merge_quote(attrs));
|
|
let node_paths = context.node_paths.iter().map(|it| quote!(&[#(#it),*]));
|
|
let node_paths = context.node_paths.iter().map(|it| quote!(&[#(#it),*]));
|
|
let attr_paths = context.attr_paths.iter().map(|it| quote!(&[#(#it),*]));
|
|
let attr_paths = context.attr_paths.iter().map(|it| quote!(&[#(#it),*]));
|
|
|
|
|
|
@@ -257,7 +260,7 @@ impl<'a> ToTokens for TemplateRenderer<'a> {
|
|
#key_tokens,
|
|
#key_tokens,
|
|
TEMPLATE,
|
|
TEMPLATE,
|
|
Box::new([ #( #node_printer),* ]),
|
|
Box::new([ #( #node_printer),* ]),
|
|
- Box::new([ #( #(#dyn_attr_printer),* ),* ]),
|
|
|
|
|
|
+ Box::new([ #(#dyn_attr_printer),* ]),
|
|
)
|
|
)
|
|
});
|
|
});
|
|
}
|
|
}
|