Writing verbatim content

20 views
Skip to first unread message

Dmitri Nesteruk

unread,
Apr 22, 2011, 11:59:42 AM4/22/11
to websh...@googlegroups.com
I'm trying to output verbatim text by writing Html.VerbatimContent("something"), but WebSharper is complaining that Element<'t> is not compatible with Element. What is the correct way of outputting verbatim content?

Adam Granicz

unread,
Apr 22, 2011, 1:40:02 PM4/22/11
to WebSharper
First of all, any good reason why you need VerbatimContent? Second,
are you mixing server and client-side stuff again?

Dmitri Nesteruk

unread,
Apr 23, 2011, 8:24:29 AM4/23/11
to websh...@googlegroups.com
I'm trying to put the following conditional statements at the end of the page:

<!--[if (lt IE 9) & (!IEMobile)]>
<script src="js/libs/DOMAssistantCompressed-2.8.js"></script>
<script src="js/libs/selectivizr-1.0.1.js"></script>
<script src="js/libs/respond.min.js"></script>
<![endif]--> 

This is all happening in a dynamic sitelet. And I really want this as-is, not done with JavaScript.

Adam Granicz

unread,
Apr 23, 2011, 2:05:25 PM4/23/11
to websh...@googlegroups.com
Since this is a comment, you can use Tags.Comment to output it
(without the <!-- and --> of course).

--
Adam Granicz, IntelliFactory
www.intellifactory.com

Reply all
Reply to author
Forward
0 new messages