マクロの呼び出しを展開し、文字列を結果と共に生成します。
シグネチャ
注意事項
例
{define-macro public {hello}
{return {expand-template "hello world"}}
}
{expand-to-string {hello}}
{define-macro public {hello}
{return {expand-template "hello world"}}
}
{define-macro public {indirect-hello}
{return {expand-template {hello}}}
}
{define-macro public {block-hello}
{return {expand-template {value {hello}}}}
}
|| This expands to: "hello world"
{expand-to-string {hello}}
|| This expands to {hello}
{expand-to-string {indirect-hello}}
|| This expands to "hello world"
{expand-to-string max-iterations = 2, {indirect-hello}}
|| This expands to: {value {hello}}
{expand-to-string max-iterations = max-int, {block-hello}}