/www/jssrc/blerg/Title.js
enyo.kind({
    name: "blerg.Title",
    kind: "Control",
    classes: "blerg-title",
    published: {
        section: ""
    },
    handlers: {
        onSetTitle: "setTitle"
    },
    components: [
        {kind: "Image", classes: "logo", src: "/images/blerglogo.png", attributes: {width: 125, height: 122}},
        {tag: "h1", components: [
            {kind: "blerg.Link", href: "/#/", content: "Blërg!"}
        ]},
        {tag: "h2", components: [
            {name: "section", tag: "span"}
        ]}
    ],
    create: function() {
        this.inherited(arguments);
        this.sectionChanged();
    },
    sectionChanged: function() {
        this.$.section.setContent(this.section);
    },
    setTitle: function(inSender, inEvent) {
        if (inEvent.section)
            this.setSection(inEvent.section);
    }
});