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
  • TIMER
UI Layout and positioning
  • CELL
  • TABLE
UI Widgets
  • CANVAS
    • Graphics API
  • COLOR_SCALE
  • FILE_SELECT_MENU
  • GRID
  • INVISIBLE_PARAM_MENU_BUTTON
  • MENU_ITEM
  • MENU_SEPARATOR
  • POPUP_MENU
  • svg
  • RULER
  • TEXT
  • TEXT_FIELD
  • TEXT_EDIT_BOX
  • XY_PARAM_PAD
  • XY_ZOOM_SELECT_PAD
  • XYZ_PARAM_SCRATCH_PAD
  • XYZ_PARAM_CLICK_PAD
  • XYZ_IMAGE_PARAM_JOYSTICK
UI 3D Objects
  • COLOR_SURFACE_3D
  • GRID_3D
  • GL_OBJECT_3D
Data model commands
  • REQUIRED_OBJECTS
  • EXPOSED_OBJECTS
  • PERSISTENT_OBJECTS
Common attrubutes
  • For all elements
  • Widgets
  • Param Widgets
  • Param Controls
  • Param Info Viewers
  • Text Widgets
  • Surface Viewers
  • Curve Viewers
  • 3D Objects
  • Parameters mapping
  • LetiMix
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.

 

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