Hi Guys,

Does anyone know if we can have template within another template using mustache js ? If yes, can you please provide details how to do it?

Or any other alternative if it cannot be done?

I have a block of html code which I want to make it as template to repeat the sequence. Inside this block there is another sequence. Can I make that also as template?

Thanks!
VenusCrystal

The manual doesn't mention the possibility of nesting templates.

Perhaps you can use the output of one template as input for the next, just like any other variable.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.