not possible to do if then else on templates

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 6.0.1
    • Component/s: ZHTML
    • None

      curentlly i have to do workaround

      <div children="@load(model.dummy) @template(model.visible?'tabs':'text')" >
      	<template name="text">
      		<label value="Nothing selected" />
      	</template>
              <template name="tabs">
      		<label value="Something" />
      
      ......
              </template>
      </div>
      

      and have to have a model property dummy (one element list). it would be nice to have the same syntax without the @load(model.dummy) so the code would look like

      <div children="@template(model.visible?'tabs':'text')" >
      	<template name="text">
      		<label value="Nothing selected" />
      	</template>
              <template name="tabs">
      		<label value="Something" />
      
      ......
              </template>
      </div>
      

            Assignee:
            Unassigned
            Reporter:
            abalwierz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: