Closed fasteddys closed 2 years ago
Hey, I definitely want to add front end support! I actually have a react BFF coming in the next release.
As far as MVC, I'll need to think on this a bit. This would be more to support and I have less depth in MVC so I'd be hesitant to put something out that's not up to snuff for the community.
Could be up for a PR at some point but would want to strategize about it a bit. I'll look this through in more depth though and see how far this gets things.
Regardless, great idea and appreciate the input!
Also, for what it's worth, you're more than welcome to fork it and add the MVC view to your own version if you'd like! I want to refs for the code to make it as friendly as possible for these instances but it's still pretty approachable as is!
funny thing is, I don't know react.js... because of my native asp Visual Studio use mainly, MVC asp MVC is very easy... either way any view is good I guess 👍
ASP MVC view is like handlebar templates with strongly typed models, is a lot easier to scaffold... those TT templates allow you to natively scaffold out the views and controllers, but since you already have the wep API, the views should be easier. Its a just a simple text transform
https://www.youtube.com/watch?v=kGvwOwv7KQ8
//Edit the templates https://www.youtube.com/watch?v=Y0JhoULu-zI
Other template helpers
https://github.com/Handlebars-Net/Handlebars.Net.Helpers
https://github.com/Handlebars-Net/Handlebars.Net
BTW - love your security helper (I think its the only one that understands security beyond RBAC)
Gotcha, I'll definitely take a deeper look at the MVC stuff.
And thanks! It was really fun to work through it. If you have any improvements you come across feel free to post in there.
Hello, this is fantastic, can you please allow us to scaffold basic views/tables/grid just like the default ASP MVC CRUD views
https://github.com/ZeekoZhu/TextTemplatingCore https://github.com/muhammadazam/MVC-T4-Templates/blob/master/CodeTemplates/MvcControllerWithContext/Controller.cs.t4 https://github.com/ligershark/side-waffle/tree/master/TemplatePack/ItemTemplates/Web/ASP.NET/Custom%20T4%20Files/MvcView
ModelMetadataFunctions.cs.include.t4
Imports.include.t4
View With controller context