@model MyOptions
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Application Options</title>
    <link href="~/Content/demo.css" rel="stylesheet" />
</head>
<body>
    <h1>Application Options</h1>
    <h2>Read from model</h2>
    <ul>
        <li>Numeric: @Model.NumericValue</li>
        <li>String: @Model.StringValue</li>
        <li>Boolean: @Model.BooleanValue</li>
        <li>
            Collection:
            <ul>
                @foreach (var item in Model.Collection) {
                    <li>@item.Name = @item.Value</li>
                }
            </ul>
        </li>
    </ul>
    <h2>Injected directly to views</h2>
    @{
        var options = optionsAccessor.Value;
    }
    <ul>
        <li>Numeric: @options.NumericValue</li>
        <li>String: @options.StringValue</li>
        <li>Boolean: @options.BooleanValue</li>
        <li>
            Collection:
            <ul>
                @foreach (var item in options.Collection) {
                    <li>@item.Name = @item.Value</li>
                }
            </ul>
        </li>
    </ul>
</body>
</html>