From 5bb400cf5110560736c4aa5bd5444177a76ef037 Mon Sep 17 00:00:00 2001 From: hypengw Date: Thu, 15 Jan 2026 11:01:00 +0800 Subject: [PATCH] add view-file template --- stdlib/stdlib.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stdlib/stdlib.go b/stdlib/stdlib.go index 57b784d..28eeac8 100644 --- a/stdlib/stdlib.go +++ b/stdlib/stdlib.go @@ -151,7 +151,7 @@ func templates(api *confluence.API) (*template.Template, error) { ``, `{{ .Ticket }}`, `{{ if .Server }}`, - `{{ .Server }}`, + `{{ .Server }}`, `{{ end }}`, ``, ), @@ -451,6 +451,15 @@ func templates(api *confluence.API) (*template.Template, error) { `{{ or .AutoPlay "false"}}`, ``, ), + /* https://confluence.atlassian.com/conf59/view-file-macro-792499226.html */ + `ac:view-file`: text( + ``, + ``, + ``, + ``, + `{{ or .Height 250 }}`, + ``, + ), // TODO(seletskiy): more templates here } {