Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterblazejewicz/customtaghelper
An ASP5 MVC6 custom tag helper sample project using Material Design Lite
https://github.com/peterblazejewicz/customtaghelper
Last synced: 25 days ago
JSON representation
An ASP5 MVC6 custom tag helper sample project using Material Design Lite
- Host: GitHub
- URL: https://github.com/peterblazejewicz/customtaghelper
- Owner: peterblazejewicz
- License: mit
- Created: 2015-07-15T21:10:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-15T20:59:05.000Z (about 9 years ago)
- Last Synced: 2023-04-05T21:37:47.467Z (over 1 year ago)
- Language: C#
- Size: 250 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CustomTagHelper [WIP]
An ASP5 MVC6 custom tag helper sample project using Material Design Lite.
This project is mostly `work in progress` as code is failing to correctly run at runtime (using `beta5` `dnx`).## Description
For bash like terminals it can be useful to use `Nodemon` to restart `dnx` after .NET files are changed - as at the time of writing `beta5` dnx does not work with `--watch` option on *nix clients.
Workaround:
```bash
#nodemon for dnx
DNX_DEFAULT_DIR=.
DNXMON_CMD=kestrel
dnxmon () {
nodemon -e cs,json,cshtml -x "dnx ${1-$DNX_DEFAULT_DIR} ${DNXMON_CMD}"
}
```
Usage:
```
dnxmon . kestrel
```## How to create tag helper?
```bash
mkdir TagHelpers
cd TagHelpers
yo aspnet:TagHelper MenuLinkTagHelper
You called the aspnet subgenerator with the arg MenuLinkTagHelper
MenuLinkTagHelper.cs created.
create MenuLinkTagHelper.cs
```Original source:
http://techiejourney.com/custom-taghelper-to-highlight-current-selected-menu-in-mvc-6/