XactCommerce Xact Objects
Home
News
XactCommerce
Typical Applications
Custom Development
Private Backend
XactScript Language
Performance
Deployment
Partners
Portfolio
About Us
leXml Language < Interface Modules & Commands < If_TemplateLists

If_TemplateLists
This is the interface module that provides a frontend for using com.xactsys.misc.MacroEngine.

load
This command loads a list and template into the template lister.
 
Arguments:
list - A List object containing a list of Maps to be templated (req)
template - Template (String object) (req)
startat - Index to start at (default=0)
 
Returns nothing and normally prints nothing unless an error occurs. This can be called again and again to re-use this module for different lists and templates.


hasnext
This returns 'yes' or 'no' depending on whether there are any more items in the list.


parse
This parses 'cnt' number of items and returns the number of items actually parsed. 0 may be returned if no more items are left.
 
Arguments:
cnt - Number of items to parse (default=0, meaning no limit)


getlistlength
This returns the number of root items in the list (not including sublists)


rewind
This is shorthand for setindex index=0


setindex
This sets the index of the current position in the list.
 
Arguments:
index - New position (default=0)


getindex
This returns the current index (-1 means not started yet)