Edit on GitHub << back to Themes and Templates

# simple theme

The simple theme renders “bare bones” HTML elements. The simple theme is most often used as a starting point for other themes. (See Extending Themes for more.)

For example, the textfield tag renders the HTML `<input/>` tag without a label, validation, error reporting, or any other formatting or functionality.

> Both the xhtml theme and css_xhtml theme extend the simple theme. Look to them for examples of how to build on the foundation laid by the simple theme.

## Head Tag

The simple theme head template prints out a javascript include required for the datetimepicker tag to render properly.

## simple head template

The simple theme head template only does one thing: it loads the minimal Ajax/Dojo support so that tags can import Dojo widgets easily.

The source of the simple `head.ftl` template is:

    <#--
    /*
     * Licensed to the Apache Software Foundation (ASF) under one
     * or more contributor license agreements.  See the NOTICE file
     * distributed with this work for additional information
     * regarding copyright ownership.  The ASF licenses this file
     * to you under the Apache License, Version 2.0 (the
     * "License"); you may not use this file except in compliance
     * with the License.  You may obtain a copy of the License at
     *
     *  http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing,
     * software distributed under the License is distributed on an
     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    -->
    <@s.script src="${base}${attributes.staticContentPath}/utils.js" />

Follow @x