SkillAgentSearch skills...

Mvcassetshelper

Simple assets helper for ASP.NET MVC, NuGet and APS.NET Core MVC

Install / Use

/learn @speier/Mvcassetshelper
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

MVC Assets Helper

Lightweight assets helper for ASP.NET MVC

NuGet

For a NuGet package, pelase check out the nuget branch

ASP.NET Core

For an ASP.NET Core MVC version with the above NuGet package, please check out the aspnetcore branch

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

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated7mo ago
Forks11

Languages

C#

Security Score

87/100

Audited on Aug 7, 2025

No findings