You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written some code to declare html form elements & produce html tags in a String. I would have written it in ructe but match isn't supported yet, and I don't know enough Rust yet to add match support to ructe myself.
It would be handy if I could write a string to the document without html entities being escaped. I tried to use the ToHtml trait but that doesn't seem to be exported from the crate...? and I couldn't find any other way to achieve this.
The text was updated successfully, but these errors were encountered:
The Html wrapper (and the ToHtml trait) is public in the generated templates module. See the User.mailto example in examples/simple/src/main.rs line 143 for an example use of it.
Supporting @match in templates, simliar to @if, might be a good idea.
I've written some code to declare html form elements & produce html tags in a String. I would have written it in ructe but match isn't supported yet, and I don't know enough Rust yet to add match support to ructe myself.
It would be handy if I could write a string to the document without html entities being escaped. I tried to use the ToHtml trait but that doesn't seem to be exported from the crate...? and I couldn't find any other way to achieve this.
The text was updated successfully, but these errors were encountered: