-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added two-way data binding to dom elements * added two-way data binding to radio groups * moved bind into reactive_graph mod * chore: use `::leptos` absolute path in macro * chore: move `Group` into the reactive module, as that's the only place it has meaning * feat: use new `bind:` syntax * chore: update for non-generic rendering * chore: ignore this test --------- Co-authored-by: Greg Johnston <greg.johnston@gmail.com>
- Loading branch information
Showing
9 changed files
with
570 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use proc_macro2::Ident; | ||
use quote::format_ident; | ||
use rstml::node::KeyedAttribute; | ||
use syn::spanned::Spanned; | ||
|
||
pub fn filter_prefixed_attrs<'a, A>(attrs: A, prefix: &str) -> Vec<Ident> | ||
where | ||
A: IntoIterator<Item = &'a KeyedAttribute> + Clone, | ||
{ | ||
attrs | ||
.into_iter() | ||
.filter_map(|attr| { | ||
attr.key | ||
.to_string() | ||
.strip_prefix(prefix) | ||
.map(|ident| format_ident!("{ident}", span = attr.key.span())) | ||
}) | ||
.collect() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.