fn: paginate.separator

[contents]

#### Syntax

The syntax for paginate.separator calls is:

f++:
paginate.separator(string)
paginate.separator
{
//separator code
}


n++:
@paginate.separator(string)
@paginate.separator
{
//separator code
}


#### Description

The paginate.separator function is for, when using pagination, specifying code to separate items on each page with, it takes one string parameter or zero parameters and is followed by a block of n++ code.

Note: Specifying a separator for pagination is optional, the default separator is "\n\n" which leaves an empty line between each item in the built file.

Note: The hard-coded constants available for pagination are listed here.

See here for some blog templates which use pagination for the posts table, specifically see here (demo) for an example of pagination code.

Note: Nift will skip to the first non-whitespace (ie. to the first character that is not a space, tab or newline) after a paginate.separator 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.:

@paginate.separator
{
# block
}!


#### n++ example

Examples of paginate.separator being used with n++:

@paginate.separator("<br>\n\n")

@paginate.separator
{

<br>

}