E208 - Template-slide stub invalid¶
Cause¶
A .slide.json template-slide stub — the form whose top level carries
template_file: instead of elements: — has extra top-level keys, or
its with: is not an object. A stub holds only the instantiation;
every slide field (title, scroll behavior, elements) comes from the
factory template.
Example¶
{ template_file: "../factories/detail.slide.json.j2",
with: { n: 1 },
title: "override" } // <- not allowed
How to fix¶
Move the field into the factory template (parameterize it via with:
if it varies per slide), leaving only template_file and with in
the stub.