Problem with non-rendering tags

1 view
Skip to first unread message

Emil C

unread,
Nov 18, 2009, 4:04:50 PM11/18/09
to Spark View Engine Dev
Why is not every ${} render?

Check out this link?
http://www.calendify.com/User/emilcardell/Following

It works locally.

Adam Schroder

unread,
Nov 18, 2009, 6:50:51 PM11/18/09
to spar...@googlegroups.com
Please supply some more source code.
eg. the surrounding code which generates the list.


--

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.
For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.



Emil C

unread,
Nov 19, 2009, 3:46:28 PM11/19/09
to Spark View Engine Dev
Here is my content main section on the spark page
<content name="MainSectionContent">

<test if="ViewData['IsFollowing'] != null">

<form id="login" class="followChoose" method="post" action="/User/$
{ViewData.Model.Username}/ToggleFollow">
<input type="submit" class="roundCorners" value="${ViewData
["IsFollowing"]}" />
</form>
</test>

<h1>Following</h1>
<div>
${ListUsers(ViewData.Model.GetFollowing(int.MaxValue))}
</div>



</content>


This is how list users look:

<macro name="ListUsers"
Users="System.Collections.Generic.IEnumerable<FlameSnapper.Models.User>">

<ul class="peopleList" each="FlameSnapper.Models.User user in Users">
<li class="img"><a href="/User/${user.Username}"><img src="$
{GravatarHelper.GetGravatarURL(user.Email, "50")}" /></a></li>
<li><h3><a href="/User/${user.Username}">${user.Username}</a></h3></
li>
</ul>

</macro>

Same problem occurs in this code:
<div class="box roundCorners">
<h3 class="borderBottom">Following</h3>
<span each="FlameSnapper.Models.User following in User.GetFollowing
(9)">
<a href="/User/${following.Username}" style="margin:1px;"> <img
src="${GravatarHelper.GetGravatarURL(following.Email, "30")}" /></a>
</span>
</div>

Emil C

unread,
Nov 20, 2009, 5:56:16 AM11/20/09
to Spark View Engine Dev
Solved it. The models rendered are null.
The $!{} made it more trasparent.

Thanx for you time.
Reply all
Reply to author
Forward
0 new messages