Umbraco Utilities
Very useful library which consists of two main namespaces
<?xml version="1.0"?>
<config>
<projectname>Umbraco utilities</projectname>
<projectmajorver>1</projectmajorver>
<projectactive>true</projectactive>
<mobiledevices>
<device>Nokia X</device>
<device>Sony Xperia</device>
<device>iPhone5</device>
</mobiledevices>
</config>
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using Umbraco.Utils.Configuration
@using Umbraco.Utils.Extensions
@{
Layout = null;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<title>@Model.Content.GetPropertyValueAsString("title")</title>
</head>
<body>
<h1>@Model.Content.GetPropertyValueAsString("title")</h1>
<p>
String value: @Config.GetValueAsString("/config/projectname")
</p>
<p>
Integer value: @Config.GetValueAsString("/config/projectmajorver")
</p>
<p>
Boolean value: @Config.GetValueAsString("/config/projectactive")
</p>
<p>
List value:
<ul>
@foreach (string listValue in Config.GetValueAsStringList("/config/mobiledevices/device"))
{
<li>@listValue</li>
}
</ul>
</p>
</body>
</html>