Create wrapper template

I’m using Blaze and was wondering how I do something like the following:

I have standard ‘blocks’ of content (using the card component of bootstrap 4).

I’d like to do something like have a template that represents this HTML markup for the card, but will be putting other blaze templates inside it. That way, if I need to change some of the card styling I can do it in one place and then everywhere that uses that card layout will get updated.

I installed blaze-layouts and am using that for basic routing and layouts and I initially thought I could use it for this function as well, but I’m not sure if that is possible.

I attempted to create a Blaze dynamic template to accomplish this but was confused on how to use the render function from inside another template (ie, not from a route)

so I had:

<template name="cardlayout">
  <div class="card">
    <div class="card-body">
      {{> Template.dynamic template=content}}
    </div>
  </div>
</template>

and then in another template, I wanted to do something like this:

<template name="sidebar">
<div class="col-md-3">
            {{> cardlayout 'subtemplate'}}
            {{> cardlayout 'subtemplate2'}}
            {{> cardlayout 'subtemplate3'}}
</div>
</template>

Is that possible?

ugh. nevermind. it works just fine passing the template name as the variable. duh.