Skip to content

jm2soccer/mvcassetshelper

 
 

Repository files navigation

MVC Assets Helper

Lightweight assets helper for ASP.NET MVC

Usage

Register your assets in any View or PartialView:

@{
    Html.Assets().Styles.Add("/Dashboard/Content/Dashboard.css");
    Html.Assets().Scripts.Add("/Dashboard/Scripts/Dashboard.js");
}

Render your assets in the Layout page:

<head>
    @Html.Assets().Styles.Render()
</head>
<body>
    ...
    @Html.Assets().Scripts.Render()
</body>

License

Copyright 2012 Kalman Speier

Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 79.3%
  • CSS 16.9%
  • JavaScript 2.2%
  • Classic ASP 1.6%