SUIT Framework

Scripting Using Integrated Templates

Docs - iterate

07/31/2010: SUIT 2.0.1 and Rulebox 1.1.0 released.

Available Since: Rulebox for Python (1.0.0)

Iterate over any object.

Syntax mixed templating.iterate ( mixed iterable )
Parameters
iterable

The object to iterate over.

Return Value

The items in key, value format.

Examples
Basic Usage
Python
from rulebox import templating
iterable = {
    'foo': 'bar'
}
iterable = templating.iterate(iterable)
# Returns: [
#     ('foo', 'bar')
# ]