How do I use a spark variable in an html helper?

Posted by Quintin Par on Stack Overflow See other posts from Stack Overflow or by Quintin Par
Published on 2010-04-23T12:30:49Z Indexed on 2010/04/23 12:33 UTC
Read the original article Hit count: 301

Can I use a spark variable inside an html helper?

Say we have

<var url="Url.Action(“get”)" />    
!{Html.Image("~/Content/up.png")}

Now if I need to use the url inside Html.Image as an attribute(part of the 2nd param) to get

<img src="~/Content/up.png" type="~/engine/get" />

how do I go about doing it?

© Stack Overflow or respective owner

Related posts about spark-view-engine

Related posts about asp.net-mvc