aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/text/template/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/text/template/testdata')
-rw-r--r--libgo/go/text/template/testdata/file1.tmpl2
-rw-r--r--libgo/go/text/template/testdata/file2.tmpl2
-rw-r--r--libgo/go/text/template/testdata/tmpl1.tmpl1
-rw-r--r--libgo/go/text/template/testdata/tmpl2.tmpl1
4 files changed, 6 insertions, 0 deletions
diff --git a/libgo/go/text/template/testdata/file1.tmpl b/libgo/go/text/template/testdata/file1.tmpl
new file mode 100644
index 0000000..febf9d9f
--- /dev/null
+++ b/libgo/go/text/template/testdata/file1.tmpl
@@ -0,0 +1,2 @@
+{{define "x"}}TEXT{{end}}
+{{define "dotV"}}{{.V}}{{end}}
diff --git a/libgo/go/text/template/testdata/file2.tmpl b/libgo/go/text/template/testdata/file2.tmpl
new file mode 100644
index 0000000..39bf6fb
--- /dev/null
+++ b/libgo/go/text/template/testdata/file2.tmpl
@@ -0,0 +1,2 @@
+{{define "dot"}}{{.}}{{end}}
+{{define "nested"}}{{template "dot" .}}{{end}}
diff --git a/libgo/go/text/template/testdata/tmpl1.tmpl b/libgo/go/text/template/testdata/tmpl1.tmpl
new file mode 100644
index 0000000..3d15b81
--- /dev/null
+++ b/libgo/go/text/template/testdata/tmpl1.tmpl
@@ -0,0 +1 @@
+template1
diff --git a/libgo/go/text/template/testdata/tmpl2.tmpl b/libgo/go/text/template/testdata/tmpl2.tmpl
new file mode 100644
index 0000000..a374d2f
--- /dev/null
+++ b/libgo/go/text/template/testdata/tmpl2.tmpl
@@ -0,0 +1 @@
+template2