tag:blogger.com,1999:blog-319207569350348666.post1988323932705175645..comments2019-11-25T11:01:37.801+00:00Comments on Circle Theory: Antaris RazorEngine, Site LayoutsFractoshttp://www.blogger.com/profile/03224029111769065049noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-319207569350348666.post-55958116832941253172014-03-18T10:53:59.759+00:002014-03-18T10:53:59.759+00:00Yes, I do use the same model type. I use RazorEngi...Yes, I do use the same model type. I use RazorEngine in an environment where the front end views (i.e. the templates) are decoupled from the back end controllers - this isn't from a typical MVC system. The model I use is a heterogeneous collection of immutable objects and the view that they are processed by can change. The back end controllers assume nothing about the view that the model will be processed by. Therefore, in this system, it is better to make the templates very flexible as to what kind of model they are expecting. I can see that if you have a defined relationship between controller and view then a strongly typed model is an advantage, but that isn't the case with this system.Fractoshttps://www.blogger.com/profile/03224029111769065049noreply@blogger.comtag:blogger.com,1999:blog-319207569350348666.post-13409199505929297182014-03-18T09:38:51.478+00:002014-03-18T09:38:51.478+00:00Do you have to have the same model type in the lay...Do you have to have the same model type in the layout and email template? It kind of seems to defy the purpose of having a layout (the nice thing about razorengine to me is that i can have strongly typed models that makes sense to my view)? Anonymoushttps://www.blogger.com/profile/07639262110852804281noreply@blogger.comtag:blogger.com,1999:blog-319207569350348666.post-12639045206652522482013-09-26T17:25:21.000+01:002013-09-26T17:25:21.000+01:00Nice one :)Nice one :)Fractoshttps://www.blogger.com/profile/03224029111769065049noreply@blogger.comtag:blogger.com,1999:blog-319207569350348666.post-78828357244481628032013-09-26T16:57:01.365+01:002013-09-26T16:57:01.365+01:00Awesome. This really helped. I couldn't find a...Awesome. This really helped. I couldn't find any documentation on how to get the template/layout architecture working. Now I'm good. Thanks!Anonymoushttps://www.blogger.com/profile/03043548034088331101noreply@blogger.com