wip: add meta to rsx
This commit is contained in:
1 parent
5d56326f74
commit
237f036a80
1 file changed
+3
-1
@@ -4,7 +4,7 @@ use proc_macro2::TokenStream as TokenStream2;
|
|||||||
use quote::{quote, ToTokens, TokenStreamExt};
|
use quote::{quote, ToTokens, TokenStreamExt};
|
||||||
use syn::{
|
use syn::{
|
||||||
parse::{Parse, ParseStream},
|
parse::{Parse, ParseStream},
|
||||||
token, Expr, LitStr, Result, Token,
|
token, Attribute, Expr, LitStr, Result, Token,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -20,6 +20,7 @@ pub enum BodyNode {
|
|||||||
Component(Component),
|
Component(Component),
|
||||||
Text(LitStr),
|
Text(LitStr),
|
||||||
RawExpr(Expr),
|
RawExpr(Expr),
|
||||||
|
Meta(Attribute),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Parse for BodyNode {
|
impl Parse for BodyNode {
|
||||||
@@ -79,6 +80,7 @@ impl ToTokens for BodyNode {
|
|||||||
BodyNode::RawExpr(exp) => tokens.append_all(quote! {
|
BodyNode::RawExpr(exp) => tokens.append_all(quote! {
|
||||||
__cx.fragment_from_iter(#exp)
|
__cx.fragment_from_iter(#exp)
|
||||||
}),
|
}),
|
||||||
|
BodyNode::Meta(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user