HTML method and Html property in SparkView class

1 view
Skip to first unread message

Mosh

unread,
Aug 14, 2010, 12:16:48 AM8/14/10
to Spark View Engine Dev
Hi,

In the SparkView class from the System.Web.Mvc assembly there is a
property called Html. There is also a method called HTML, which is a
problem if your using a case insensitive language.

I don't suppose the method could be renamed in a future version ?

Cheers,
John

Louis DeJardin

unread,
Aug 14, 2010, 12:44:31 AM8/14/10
to spar...@googlegroups.com
D'oh!

The upper-case HTML(x) method is when you have any value 'x' that you're explicitly stating is already html, and shouldn't be encoded.

Like a string Body that is known to contain markup you'd have ${HTML(Body)}

The name came from xhp's HTML() function. See http://wiki.github.com/facebook/xhp/ section "Escaping".

But if we can come up with a good alternative for the name it's worth changing to avoid colliding with the "Html" helper.

Hi,

Cheers,
John

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
To post to this group, send email to spar...@googlegroups.com.
To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.


Reply all
Reply to author
Forward
0 new messages