Skip to content

Declarative helpers for your Razor based view. Less noise and more control that in built-in ASP.NET MVC helpers.

Notifications You must be signed in to change notification settings

ttamminen/ASP.NET-MVC-Common-Declarative-Helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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")

About

Declarative helpers for your Razor based view. Less noise and more control that in built-in ASP.NET MVC helpers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published