The <views> element enables weblog services to provide Writer with the information required to ensure an optimal WYSIWYG editing experience (or to enable or disable WYSIWYG editing as appropriate for the service or a specific weblog theme). Two types of information can be provided within the <views> element:
-
The default view for editing (Normal or WebLayout) can be specified.
-
Templates for the WebLayout or WebPreview view can be explicitly provided.

Format
The following are the valid sub-elements for the <views> element:
|
<default>
| Default view for editing (Normal or WebLayout). |
|
<view type="WebLayout" src="…" />
| Template for WebLayout view. The template must contain the {post-title} and {post-body} substitutable macros to indicate the respective locations of the post title and body within the template. |
|
<view type="WebPreview" src="…" />
| Template for WebPreview view. The template must contain the {post-title} and {post-body} substitutable macros to indicate the respective locations of the post title and body within the template. |
Here is an example of a <views> element that contains both default view and <view> elements that point to the URLs for the WebLayout and WebPreview templates:
<views>
<default>WebLayout</default>
<view type="WebLayout" src="weblayout.htm" />
<view type="WebPreview" src="webpreview.htm" />
</views>
When downloading supporting files (e.g. images or css) from a WebLayout or WebPreview template, relative URLs will be resolved based on the weblog homepage URL rather than the base URL of the template itself.