Skip to content

Commit

Permalink
Allow many meta for Html widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Nov 14, 2023
1 parent 1860746 commit 8d7b8a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/web/utils/ssr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn html_parts_separated(config: &GloryConfig, truck: &Truck) -> (String, Str

(
format!(
r#"<!DOCTYPE html>
r#"<!doctype html>
{html_open}
<head>
<meta charset="utf-8">
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/web/widgets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::{Cage, Node, NodeRef, Scope, Widget};
#[macro_export]
macro_rules! generate_tags {
($(
#[$meta:meta]
$(#[$meta:meta])*
$tag:ident $name:ident $inner:ident [$($prop_fn:ident $($prop_key:expr)?),*] $($void:ident)?
),* $(,)?) => {
paste::paste! {
Expand Down Expand Up @@ -256,7 +256,7 @@ macro_rules! generate_tags {
}
}

#[$meta]
$(#[$meta])*
pub fn $tag() -> $name {
$name::new()
}
Expand Down

0 comments on commit 8d7b8a1

Please sign in to comment.