We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given
func strBldArg(_ a: String) -> String { a } func strBldNamedArg(a: String) -> String { a } func strBld(_ body: () -> String) -> String { body() }
We have the following expansions:
let a: String = #html(div(strBldArg("a")))
"<div>\(strBldArg("a"))</div>" (good)
"<div>\(strBldArg("a"))</div>"
let b: String = #html(div(strBldNamedArg(a: "b")))
"<div>\(strBldNamedArg(a: "b"))</div>" (also good)
"<div>\(strBldNamedArg(a: "b"))</div>"
let c: String = #html(div(strBld{ "c" }))
"<div>\(strBld())</div>" (Oops! The closure is gone!)
"<div>\(strBld())</div>"
let d: String = #html(div(strBld({ "d" })))
"<div>\(strBld({ "d" }))</div>" (Good 😃)
"<div>\(strBld({ "d" }))</div>"
The text was updated successfully, but these errors were encountered:
Can confirm problem. Working on a fix ASAP!
Sorry, something went wrong.
804a0d9
Fixed in latest commit. Thanks for reporting! <3
RandomHashTags
No branches or pull requests
Given
We have the following expansions:
"<div>\(strBldArg("a"))</div>"
(good)"<div>\(strBldNamedArg(a: "b"))</div>"
(also good)"<div>\(strBld())</div>"
(Oops! The closure is gone!)"<div>\(strBld({ "d" }))</div>"
(Good 😃)The text was updated successfully, but these errors were encountered: