/**
 * View class for Pages
 *
 * @copyright  2014-today Justso GmbH, Frankfurt, Germany
 * @author     j.schirrmacher@justso.de
 *
 * @package    Generator
 */

define([ "jquery", "backbone" ], function($, Backbone) {
    return Backbone.View.extend({
        tagName: 'li',
        className: "list-group-item",

        render: function(page) {
            this.$el.attr("id", page.cid);
            this.$el.html(_.template($("#PageEntry").html(), page.attributes));
            return this.el;
        }
    });
});

/**
 * View class for Pages
 *
 * @copyright  2014-today Justso GmbH, Frankfurt, Germany
 * @author     j.schirrmacher@justso.de
 *
 * @package    Generator
 */

define([ "jquery", "backbone" ], function($, Backbone) {
    var compiled = _.template($("#PageEntry").html());

    return Backbone.View.extend({
        tagName: 'li',
        className: "list-group-item",

        render: function(page) {
            this.$el.attr("id", page.cid);
            this.$el.html(compiled(page.attributes));
            return this.el;
        }
    });
});

Use precompiled template for pages as well
Use precompiled template for pages as well
