volkovku / RazorTemplates

Open source templating engine based on Microsoft's Razor parsing engine. Thread safe. Allows run Razor templates outside ASP.Net MVC Projects.
Microsoft Public License
99 stars 31 forks source link

Layouts #7

Open javiertg opened 11 years ago

javiertg commented 11 years ago

How can i use Layouts? I try to use @{ Layout = "_Layout.cshtml"; } and fail the compliter. The Layout name not found.

alxbog commented 11 years ago

Hi, javiertg.

How do you suppose to use it? Would you give us an example?

javiertg commented 11 years ago

my idea is to use it in a conventional MVC3/4-like way. I am looking for a base template (Layout) where render the content of my pantillas (someting like a Master.Page and a .aspx page liked to that master) at @RenderBody() project similar to RazorMachine

ewgenym commented 11 years ago

I would like to vote for this feature

volkovku commented 11 years ago

Hi, javiertg and ewgenym, I will try investigate this feature and implement it when will have some time for RazorTemplate.