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++:

  1. @item
  2. {
  3. <p>
  4. item 1
  5. </p>
  6. }
  7. @item
  8. {
  9. <p>
  10. item 2
  11. </p>
  12. }