Ryan Nowak
fa21d1cd65
Remove extra TextWriter parameter from IView
...
This was here in the legacy code for legacy reasons. We're passing the writer
as part of the ViewContext, so we can remove this extra parameter.
2014-03-25 14:19:43 -07:00
Ryan Nowak
86ac978451
Implementation of ViewComponents
2014-03-25 11:04:37 -07:00
dougbu
32d031c6eb
Add `ModelMetadata` to `ViewData`
...
- demonstrate `ModelMetadata` is available in a view
Also
- simplify `View()` overloads in `Controller`, pending #110 decisions
- make `Model` in `RazorView<T>` readonly
2014-03-21 14:42:42 -07:00
Ryan Nowak
1ca2203421
cr feedback
2014-03-21 11:13:15 -07:00
Ryan Nowak
6610788b75
Restore the TextWriter to ViewContext
2014-03-21 11:13:14 -07:00
dougbu
3a0add8be8
Cleanup pass: Move Rendering classes to correct namespace
...
- use Microsoft.AspNet.Mvc.Rendering namespace throughout assembly
Also
- move `IdAttributeDotReplacement` from `TagBuilder` to `HtmlHelper`
- remove commented-out code in `HtmlHelper`
- use `var` and `[NotNull]` more
- `String` -> `string`
- correct Resources references; add missing resources
2014-03-18 14:02:39 -07:00
N. Taylor Mullen
f8179f03e4
Trigger view rendering asynchronously.
...
This is as simple as modifying the base class to return task and await the ExecuteAsync method. Also added a piece to the sample project to verify functionality.
2014-03-17 12:18:54 -07:00
Ryan Nowak
77a7bb58a6
CR feedback
2014-03-12 10:57:48 -07:00
Ryan Nowak
12985c19ee
CR feedback
2014-03-12 10:57:47 -07:00
Ryan Nowak
0ce2c511d4
Adding URL generation to WebFX for controllers and views
...
This follows a similar pattern to html helpers - a minimal basis interface
that performs the main functionality, and a set of extension methods that
make up the rich API.
2014-03-12 10:57:46 -07:00
Pranav K
123089d5c7
General razor clean up
...
* Change Razor compilation to use ApplicationBasePath to determine the
app root
* Change class name generation to be based on app-relative path.
2014-03-10 11:56:07 -07:00
David Fowler
34641d21e6
Added code path for rendering html encoded content on K
2014-03-08 23:14:40 -08:00
Pranav K
9915b1c767
Reintroduce WriteAttribute methods on RazorView type
2014-02-24 19:55:48 -08:00
Pranav K
b51fd08bab
Update ViewDataOfT.SetModel to check for type compatibility when setting
...
model instance.
2014-02-05 14:33:11 -08:00
Pranav K
6c9d562fc3
* Using RazorView<dynamic> as base type until we get model support
...
* Modifying ViewData to share inner dictionary until we figure out how to
pass it correctly
* Removing unused NuGet.config
2014-01-30 07:26:46 -08:00
David Fowler
a0de7048b5
Ifdef to make stuff compile on both platforms.
2014-01-24 02:20:46 -08:00
David Fowler
b54a0da6e8
Updated MVC.
...
- Use new HttpAbstractions
- Updated the build
- Added new projects
2014-01-24 01:55:17 -08:00
David Fowler
477cf79e58
Removed unneeded dependencies and updated owin bits.
2014-01-22 19:03:56 -08:00
Pranav K
69a99e5c41
Moving View overloads to Controller base type
2014-01-22 10:59:32 -08:00
Pranav K
7b8a54cc24
* Updating project structure to use the src, test, build, samples format
...
* Adding build scripts to use K compilation.
2014-01-21 16:15:44 -08:00