3 ms·
Ditto on Razor. It's like 2002 php. Except you can't really create reusable partials because of static typing. Sure, you can just make everything dynamic, but t
by Touche 13y ago
Ditto on Razor. It's like 2002 php. Except you can't really create reusable partials because of static typing. Sure, you can just make everything dynamic, but then the top of your view turns into:
@{
/* A bunch of repetitive object creation and casting */
}
Which has happened in every razor project I've seen anyways.
- efdee 13y agoObject creation and casting in side your views? Maybe you are just putting too much logic in your view. Use interfaces as your model for partial views and reuse becomes a no brainier.