Helper inside template helper

How to use helper inside a template helper? Thanks in advance

//HTML code
<Template name="NewRecipe">
	<div class='new-recipe-container'>
		<i class="fa fa-close"></i>
		{{> quickForm collection="Receipe" schema={{schemaName}} id="insertRecipeForm" type="insert" class="new-recipe-form" }}
	</div>
</Template>

//Javascript code
Template.NewRecipe.helpers({
	schemaName: function(){
		return Session.get('currentRecipe');
	}
});

I would like to use helper {{schemaName}} inside a quickform template helper as shown above

{{> quickForm collection="Receipe" schema=schemaName id="insertRecipeForm" type="insert" class="new-recipe-form" }}

1 Like

@satya - That works. Thanks. Silly Mistake!!!

1 Like

@satya - Can you please help me on this one - AccountsTemplates checkbox field