Template Components

In addition to the actual <movie> tag there are a number of processing directives to make the editing of templates more convenient.

Include

It is always a good idea to split a template into smaller pieces which you can test independently and assemble into a larger template. The <include> directive replaces the directive with the content of the file named in the ref attribute. A reference can contain an optional pointer (#id-of-element) that can be used to include only a part of the referenced file.

<movie>
    <include ref="big-file#scene1" />
</movie>
will include the the scene with the id scene1 from file big-file
<movie>
    <scene id="scene1" duration="1s">
        <text content="Some Text" />
    </scene>
</movie>

Terms of Use | © 2017, Impossible Software, or its affiliates. All rights reserved.