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

  1. <html>
  2. <head>
  3. @input("template/head.content")
  4. </head>
  5.  
  6. <body>
  7. @content
  8. </body>
  9. </html>

  1. <html>
  2. <head>
  3. @input("template/head.content")
  4. </head>
  5.  
  6. <body>
  7. @content{if-exists}
  8. </body>
  9. </html>