NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_adp_puts(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

ns_adp_puts - Append data to the output buffer for the current connection

Table Of Contents

Synopsis

Description

This command appends the string to the output buffer for the current connection. If -nonewline is specified, a line terminator is not appended after string.

The ns_adp_puts command is similar to ns_write, but there are important differences. While ns_write writes directly to the client's connection and allows you to send header fields and control the output stream at a low-level, ns_adp_puts operates at a higher level by writing to the ADP output buffer and automatically appending newlines by default. Therefore, ns_adp_puts should be used for output within ADP pages, as it integrates seamlessly with the ADP processing model and ensures proper output buffering.

COMMANDS

ns_adp_puts ?-nonewline? ?--? string

See Also

ns_write, nsd

Keywords

ADP, server built-in