fn: content
[contents]

Contents

Syntax

The syntax for content calls is:

f++:  
content{options}

n++:  
@content{options}

Description

The content function is for inserting content in to template files and takes zero parameters.

Options

The following options are available for content calls:

option description
f++ inject output of content file parsed with f++
n++ inject output of content file parsed with n++ (default)
raw inject content file as raw text
if-exists inject content file only if it exists (normally throws an error otherwise)
!i do not indent
option description

n++ example

Examples of content being used with n++:

<html>
	<head>
		@input("template/head.content")
	</head>

	<body>
		@content
	</body>
</html>

<html>
	<head>
		@input("template/head.content")
	</head>

	<body>
		@content{if-exists}
	</body>
</html>