mausch / XmlLiteralsTypeProvider

F# type provider implementing compile-time XML literals
Apache License 2.0
5 stars 2 forks source link

Attribute value hole #9

Open mausch opened 10 years ago

mausch commented 10 years ago

Figure out how to represent a hole in an attribute value, e.g. <a href="<%= homeUrl %>">Home</a> . The type of this hole is string.

mausch commented 10 years ago

One possibility would be to have it exactly like I wrote it. But it would go against the current syntax. Maybe the current syntax needs to be revised, why not.

Another possibility: <a x:attr="href/homeUrl">Home</a> but it feels invasive and magic.

mausch commented 10 years ago

XSLT uses expressions in braces, so could just borrow that or something similar.