-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mohe2015/attribute-with-dash
implement attributes with dash
- Loading branch information
Showing
5 changed files
with
98 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
extern crate alloc; | ||
|
||
use async_zero_cost_templating::html; | ||
use async_zero_cost_templating::TemplateToStream; | ||
use core::pin::pin; | ||
use futures_util::stream::StreamExt; | ||
|
||
#[tokio::test] | ||
async fn test() { | ||
let stream = html! { | ||
<a aria-current="true"> | ||
</a> | ||
}; | ||
let result: String = stream.collect().await; | ||
assert_eq!(result, r#"<a aria-current="true"></a>"#) | ||
} |