Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 794 Bytes

File metadata and controls

29 lines (21 loc) · 794 Bytes

ASP.NET MVC Common Declarative Helpers

Overview

The idea is to provide simple and easily customizable helpers that will make your Razor views slightly cleaner.

Sometimes using built-in html helpers can cause ugly syntax when you don't find exactly correct overrides. For example simple thing like creating a form is done using helper that has 11 overrides. There are no optional parameters or named arguments.

Installation

  • create folder "App_Code" to the root of your web project
  • copy cshtml files (inside "App_Code") you need to the "App_Code" folder

Usage

Examples how to use Assets helper.

To load a css file

@Assets.CSS("main.css")

To load a javascript file

@Assets.Script("main.js")