HI,
I have written a String.Spark display template for string types. This
String.Spark has been placed in the Views/Shared/DisplayTemplates
folder. In one of the master pages (Html.spark) I am calling
Html.Display as follows:
<body class="tundra">
<use content="header" />
<div id="menucontainer">
<%=Html.Menu("selected", new { id = "menu" })%>
</div>
${Html.Display("Hello World!")}
<use content="view"/>
<use content="footer"/>
</body>
My String.spark file in the Views/Shared/DisplayTemplates folder is as
follows:
${ViewData.Model} additional text here
This prints only the text "additional text here" but not the text
"Hello World additional text here" as I expect.
What is missing here? How do I access the Model object in my string
template. This seems to work for WebFormsViewEngine as indicated in
many blogs but similar example is not available for spark view engine.
Please help.
--
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.