fn: item
[contents]

Contents

Syntax

The syntax for item calls is:

f++:  
item
{
	#block for item
}

n++:  
@item
{
	@# block for item
}

Description

The item function is for use with paginate where you can find a basic example, it takes zero parameters and is followed by a block.

Note: Nift will skip to the first non-whitespace (ie. to the first character that is not a space, tab or newline) after a item call and inject it to the output file where the call started. If you want to prevent Nift from doing this put a '!' after the call, eg.:

@item
{
	# block
}!

n++ example

Example of item being used with n++:

@item
{
	<p>
		item 1
	</p>
}
@item
{
	<p>
		item 2
	</p>
}