Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Grunt task to generate a T4MVC C# class to strongly type static files

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time


Grunt task to generate a T4MVC C# class to strongly type your static folder(s)

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-t4mvc-statics --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


The "t4mvc_statics" task


In your project's Gruntfile, add a section named t4mvc_statics to the data object passed into grunt.initConfig().

  t4mvc_statics: {
    options: {
      // Task-specific options go here.
    files: {
      'Generated Filepath here' : [ 'Static Folder Here']
Something went wrong with that request. Please try again.