Open JuergenGutsch opened 5 years ago
Comment written by Carlo van Wyk on 24.07.2017 09:39:46
I must admit, I'm skeptical of Razor. I can see myself using it for light weight pages where you really need a UI with an endpoint and no logic, and I think this is what it's intended for.
But it's bound to introduce spaghetti code. I saw the code in the demo and it was an ugly spaghetti mess. Less disciplined and experienced programmers are going to make a mess out of Razor.
Comment written by Jürgen Gutsch on 24.07.2017 11:22:56
Hi Carlo, even MVC can get messy, IMHO. But I know what you actually mean. And I agree in general
Comment written by saint4eva on 24.07.2017 14:46:41
Nice one Jurgen. Please can you write on how to create contact form and authorisation/ authentication with Razor Pages?
Once more, thank you for the nice post..
Comment written by Jürgen Gutsch on 24.07.2017 14:55:27
Glad you like it :)
Great idea. I'll do some more posts about it :)
Comment written by saint4eva on 24.07.2017 16:47:48
Cool..
Comment written by Eric De Wildt on 02.09.2017 07:50:58
Do you think it would be possible to convert the
Page.cshtml.cs
from C# into F# and have a
Page.cshtml.fs
file? I would Love to use pages in F#.
Comment written by Jürgen Gutsch on 03.09.2017 08:06:28
I never tried it. There is a F# template for ASP.NET Core. So in theory it should work
Comment written by Eric De Wildt on 03.09.2017 22:08:27
Thanks for the quick response! I guess I will have to try it as a personal project. If I succeed I will try to upload the F# template as a dotnet CLI template.
Comment written by Eric De Wildt on 21.10.2017 04:37:34
I ended up doing it myself, the code is on my GitHub.
Written on 24.07.2017 07:54:29
URL: http://asp.net-hacker.rocks/2017/07/24/razor-pages.html