IHP 1.3 is out now!

Alternative project layout in a Razor Pages style

dharmatech

A short (6 minute) video demonstrating that IHP projects can have a different layout that's closer to what you see in an ASP.NET Core Razor Pages project:

https://youtu.be/WhCiBZNc15Y

The git branches that I reference:

https://github.com/dharmatech/ihp-blog/tree/2021-08-08-pages-layout

https://github.com/dharmatech/ihp-blog/tree/2021-08-13-pages-layout-actions

If you have an alternate layout that you like to use, feel free to share below.

(Thanks to Noughtmare and luqui who helped me sort out how to factor out the actions in this post.)

Lars Lillo Ulvestad

Nice video! Really liked those layout ideas :) It's different, but I personally don't think I would have any issues adjusting to that structure if I inherited an IHP project like that.

Stian Lågstad PRO

I like it too! Agrees with the Organize modules “vertically”, not “horizontally” from https://www.haskellforall.com/2021/05/module-organization-guidelines-for.html