4

The API doc says:

Specifying a component's templateName is deprecated without also providing the layout or layoutName properties.

So what's the difference between template and layout for a component? And in what situation will we need to specify both template and layout?

It looks like that template is the {{yield}} part of a layout?

starshine wang
  • 616
  • 1
  • 8
  • 13

1 Answers1

0

The link you provided doesn't contain the marked text - it might've changed, so not sure what the context is. But essentially, layout will be used as the 'yeild' part of another template. (A template can use multiple layout pages)

Chhirag Kataria
  • 278
  • 1
  • 9