Skip to main content

link_to

Function link_to 

Source
pub fn link_to(href: impl AsRef<str>) -> Element
Expand description

A hyperlink with its href: <a href="…">.

§Examples

use winged_rust::prelude::*;
assert_eq!(link_to("/pricing").text("Pricing").render(), r#"<a href="/pricing">Pricing</a>"#);