TXTML

The markup language for Subversive (Mobile) Storytelling

flow control : include


DESCRIPTION

<include> substitutes a block of code defined elsewhere for its execution, in order for that block to be shared among multiple states.


PARAMETERS

block - block to be included


EXAMPLES

...
     <state name="example">
          <input>
               <include block="reusable_code" />                         
               <txt>That's not the magic word!</txt>
          </input>
     </state>

     <block name="reusable_code">
          <if-input value="magic word">
               <send state="elsewhere" />
          </if-input>
     </block>
...

introduction
installation
authoring txtml
definition
event handlers
flow control
conditions
variables
content
math
other
feeds
requestors
formats
admin interface
extending