Computer Magic Logo
Introduction

Wednesday, June 24, 2015

Published by Aristotelis Pitaridis

Now that we have learned how to create a document type, let’s try to edit the template which will use the Document type’s properties. The template contains the HTML which in conjunction with server side code can generate dynamic contents which will be displayed on the web browser. In order to generate the final html, Umbraco uses the Razor syntax which allow easy combination of HTML and C# code.

Each Umbraco page uses a Template in order to format the appearance of the page. Each Template can use another Template as layout so that we will not repeat html contents and C# code in our project. Each Umbraco template is an ASP.NET MVC View which means that we can take advantage of all the ASP.NET MVC features.