Skip to content
Declarative helpers for your Razor based view. Less noise and more control that in built-in ASP.NET MVC helpers.
Find file
Pull request Compare This branch is 2 commits behind ttamminen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
App_Code
readme.md

readme.md

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.css")
Something went wrong with that request. Please try again.