Meteoric Question - passing parameters into templates

I have a template called menuBar which just has my content my header content ((#contentFor ‘headerButtonLeft’}} and so forth. I’m trying to call {{> menuBar title="Some Title"}} and then say:

  {{#contentFor 'headerTitle"}}
    <h2>{{title}}</h2>
  {{/contentFor}}
</template>```

I can't seem to get the above to work though. Any ideas? I don't get any errors.

contentFor being a block helper doesn’t get the data context of it’s parent template. You can fix this by passing the title as a named param into the block.

<template name="menuBar">
    {{#contentFor "headerTitle" title=title}}
        <h2>{{title}}</h2>
    {{/contentFor}}
</template>

This seems to create an error and break the application.