IndigoUnited / spoonjs-cli

SpoonJS CLI tool
MIT License
3 stars 1 forks source link

Consider adding classes to the body for easier styling #21

Closed satazor closed 11 years ago

satazor commented 11 years ago

The spoon project create creates an empty ApplicationView. We could instead override the render function with:

        /**
         * {@inheritDoc}
         */
        render: function () {
            this.$super();

            // Add class names to the browser for easier styling for certain browsers
            $(document.body).addClass(Browser.getName());
            // Add also classes for the rendering engine (webkit, presto, trident, etc)
            return this;
        }

This would be great to offer by default.