PLUG'N SCRIPT
rapid plugin development
Tutorial
DSP
KUIML
How-to
Scripts
  • Tutorial
  • Element Reference
Language basics
  • SKIN
  • DUMMY
  • INCLUDE
  • INCLUDE_ONCE
  • DEFINE
  • UNDEFINE
  • VARIABLE
  • LOCAL_VARIABLE
  • TEMPLATE
  • TEMPLATE_INNER_CONTENT
  • REPEAT
Data model
  • PARAM
  • ACTION
    • Action types
  • ACTION_TRIGGER
UI Layout and positioning
  • CELL
  • TABLE
UI Widgets
  • TEXT
  • TEXT_FIELD
  • TEXT_EDIT_BOX
  • CANVAS
    • Graphics API
  • svg
Common attrubutes
  • For all elements
  • Widgets
  • Param Widgets
  • Param Controls
  • Param Info Viewers
  • Text Widgets
  • Surface Viewers
  • Curve Viewers
  • 3D Objects
  • Parameters mapping
KUIMLElement ReferenceTEMPLATE_INNER_CONTENT
December 21, 2020

TEMPLATE_INNER_CONTENT

Within a TEMPLATE element, a single TEMPLATE_INNER_CONTENT tag can be used to define where the inner content of the instantiated TEMPLATE should be placed.

Examples

First declare a template with an inner content tag as shown here:

  1. <TEMPLATE id="TPL_MY_TEMPLATE" >
  2. <!--template structure with inner content-->
  3. <ELEMENTA>
  4. <ELEMENTB/>
  5. <TEMPLATE_INNER_CONTENT/>
  6. </ELEMENTA>
  7. </TEMPLATE>

Once this template has been declared, you can instantiate it with additional inner content:

  1. <TPL_MY_TEMPLATE>
  2. <HELLO/>
  3. <WORLD/>
  4. </TPL_MY_TEMPLATE>

The code above is equivalent to writing:

  1. <ELEMENTA>
  2. <ELEMENTB/>
  3. <HELLO/>
  4. <WORLD/>
  5. </ELEMENTA>

The TEMPLATE_INNER_CONTENT tag is replaced by the content declared within the instantiated template.

 


Comments

2020 © Plug'n Script and KUIML by Blue Cat Audio  |  Site by LetiMix