Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8369277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:36:09+00:00 2026-06-09T13:36:09+00:00

I must be doing something wrong because I can’t get the non-collection portion of

  • 0

I must be doing something wrong because I can’t get the non-collection portion of the CompositeView to render with a specified template. No matter how I try to specify the template, it doesn’t render as expected.

Per the docs at https://github.com/derickbailey/backbone.marionette/blob/master/docs/marionette.compositeview.md

I’ve tried providing a string that points at a template stored in a script tag, and a pre-compiled template as the template argument like so:

    Backbone.CompositeView.extend({
        template: _.template( "<div><span class='items'></span></div>" )
    });

Here’s a live attempt in jsfiddle: http://jsfiddle.net/2PgrS/4/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:36:10+00:00Added an answer on June 9, 2026 at 1:36 pm

    You never rendered your view.

    
        var view = new MyCompositeView({
            collection: collection
        });
    
    
        // render the view  
        view.render();
    
    
       view.$el.appendTo( "body" );
    

    http://jsfiddle.net/derickbailey/XJLxv/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I must be doing something wrong here (because really, what are the chances of
Ok, I know I must be doing something wrong, but darned if I can
I must be doing something wrong because I have replicated many answers on this
I must be doing something wrong here. I'm trying to use Google Analytics to
I'm facing a apparently very strange problem (I must be doing something wrong, just
Okay, I know I'm doing something wrong - but can't figure out a better
I must be doing something wrong... Or this may be a bug in YAJL,
I must be doing something wrong, but my code is very basic, hardly even
I think I must be doing something stupid. Unfortunately, due to the nature of
This is a very simple issue. I must just be doing something stupid: This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.