Difference between revisions of "Xebra Taglib Xeb"

(Xeb)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Xebra]]
 
[[Category:Xebra]]
 +
[[Xebra About|About]] | [[Xebra Installation|Installation]] |  [[Xebra Documentation|Documentation]] |  [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]]
  
The Xebra Tag Library is a container for the more mundane, simple tags which are used almost everywhere. They include loops, calls to the controller and other basic things.
+
 
 +
The Xebra Tag Library is a container for the more mundane, simple tags which are used almost everywhere. They include loops, calls to the controller and other basic functionality.
  
 
===Xeb===
 
===Xeb===
Line 17: Line 19:
 
|
 
|
 
<xml>
 
<xml>
<xeb:loop times="..." >
+
<xeb:loop times="..." variable="..." >
 
...
 
...
 
</xeb:loop>
 
</xeb:loop>
 
</xml>
 
</xml>
 
|
 
|
Loops its content "times" times.
+
Loops its content "times" times. The optional 'variable' defines a local which contains the current index of the loop.
 
|-
 
|-
 
|
 
|
Line 50: Line 52:
 
|
 
|
 
<xml>
 
<xml>
<xeb:display feature="..." />
+
<xeb:display text="..." />
 
</xml>
 
</xml>
 
|
 
|
The display tag simply displays what is written in feature.
+
The display tag simply displays what is written in text (which can of course be dynamic content).
 
|}
 
|}

Latest revision as of 08:05, 1 September 2009

About | Installation | Documentation | Tutorials | Frequently Asked Questions


The Xebra Tag Library is a container for the more mundane, simple tags which are used almost everywhere. They include loops, calls to the controller and other basic functionality.

Xeb

Tag Description
<xeb:call feature="..." />

Calls the feature on the controller on render-time.

<xeb:loop times="..." variable="..." >
...
</xeb:loop>

Loops its content "times" times. The optional 'variable' defines a local which contains the current index of the loop.

<xeb:redirect url="..." />

Redirects the server to a new page at "url". The redirect is done server internally.

<xeb:iterate list="..." variable="..." type="...">
</xeb:iterate>

Iterates over a list (defined with "list" as a controller call). The current item is stored in "variable" which is of type "type". This variable is known in the scope of the iterate tag.

<xeb:container>
...
</xeb:container>

This simple tag just groups parts of the site. Can be used to conditionally render some parts with the "render" attribute.

<xeb:display text="..." />

The display tag simply displays what is written in text (which can of course be dynamic content).