Shazwazza / ClientDependency

DEPRECATED. A library for managing CSS & JavaScript dependencies and optimization in ASP.Net
139 stars 65 forks source link

RenderCssHere outputs System.Web.Mvc.HtmlHelper`1[Umbraco.Core.Models.PublishedContent.IPublishedContent] #170

Closed seanrockster closed 5 years ago

seanrockster commented 5 years ago

This is an umbraco 8.1 project. I've added the nuget packages ClientDependency-Mvc5 1.9.3 and ClientDependency 1.9.8. On my layout view(template) i'm adding a RequireCss line and directly after a RenderCssHere line but it just outputs this...

System.Web.Mvc.HtmlHelper`1[Umbraco.Core.Models.PublishedContent.IPublishedContent]

@Html.RequiresCss("/css/app/style.css") @Html.RenderCssHere() fyi, these two statements are on separate lines, the editor here is not adding a linebreak.

Any ideas? Thanks

seanrockster commented 5 years ago

Ok, wrapping the RequireCss in curly brackets removes the extrenuous output.