Overview

webweb2 is a content management system that is designed for developers. It allows you to create your website through a web based IDE where you write pages using Razor syntax.

Relationship to webweb

webweb is a content management system that is somewhat similar to webweb2, but it works a bit differently. webweb2 is a complete rewrite of webweb that fundamentally changes how the page creation process works. Here's an overview of the differences:

Component-page-template-layout system

The component-page-template-layout system is what I consider to be the most useful feature of webweb2. Each of these is called an item, that can be shown in a single tab in the webweb2 IDE.

Page and Template

A page is the building block of your website. Each page compiles to an HTML file. A page has three parts, represented by subtabs in the IDE; Razor, CSS, and JS. A template is the same thing as a page, except when you create a new page, you can select a template to use. This will fill the new page with the contents of the template.

Layout

Each page has a layout, which is declared inside the Razor markup of the page like this:

@{
    Layout = "_Layout";
}

<aside> ⚠️ Notion does not have support for Razor code highlighting, so I'll use C#.

</aside>

<aside> 💡 If you don't want a layout, set Layout to null (without quotes around it).

</aside>