Renderingla

§

String-template substitution holes inside quoted literals.

Syntax: \"<template>\"(<args>...)

Category

format

Related

Examples

examples/corpus/operatores/metadata.fab (canonical · operator-group)

String-template substitution holes inside quoted literals.

# operatores/metadata — § string templates
#
# GRAMMAR:
#   stringTemplate :← stringLit '(' expr (',' expr)* ')'
#
# EXPECTED OUTPUT:
#   Salve, Marcus!, 1 + 2 = 3
#
# BACKEND:
#   Per-file metadata belongs in +++ frontmatter, not line-start § directives.

incipit {
    fixum _ nomen ← "Marcus"
    nota "Salve, §!"(nomen)
    nota "§ + § = §"(1, 2, 3)
}

Expected output:

Salve, Marcus!
1 + 2 = 3