====== WebComponent - Unit ======


===== About =====
''unit'' is just a semantic [[webcomponent|component]] to indicate a unit of sequence of [[doku>wiki:syntax#code_blocks|code block]].

It doesn't render.

===== Articles Related =====
{{backlinks>.}}

===== Syntax =====

  * The unit node may got the ''display="none"'' property to not display the whole block
<code >
<unit display="none">
<file txt nico.txt>
Nico
</file>
%%A block code%%
<console>
Nico
</console>
</unit>
</code>



===== Example =====
==== Default ====

<webcode name="Render" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story >
<code dw>
<unit>
<file txt nico.txt>
Nico
</file>
%%A code block may also come here but as we can't nest node in dokuwiki we can put it in a rendering block%%
<console>
Nico
</console>
</unit>
</code>
</webcode>




==== Display: none ====
The unit node may got the ''display="none"'' property to not display the whole block

The below code should not render.

<webcode name="No render" frameborder=0 width=100% scrolling=yes externalResources="," renderingMode=story >
<code dw>
<unit display="none">
<file>
</file>
<console>
</console>
</unit>
</code>
</webcode>
