Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9c2ebab8
Commit
9c2ebab8
authored
Aug 08, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/template: document that comments may span newlines.
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/4855045
parent
54e9406f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/pkg/exp/template/doc.go
src/pkg/exp/template/doc.go
+3
-2
No files found.
src/pkg/exp/template/doc.go
View file @
9c2ebab8
...
@@ -16,7 +16,7 @@ structure as execution proceeds.
...
@@ -16,7 +16,7 @@ structure as execution proceeds.
The input text for a template is UTF-8-encoded text in any format.
The input text for a template is UTF-8-encoded text in any format.
"Actions"--data evaluations or control structures--are delimited by
"Actions"--data evaluations or control structures--are delimited by
"{{" and "}}"; all text outside actions is copied to the output unchanged.
"{{" and "}}"; all text outside actions is copied to the output unchanged.
Actions may not span newlines.
Actions may not span newlines
, although comments can
.
Once constructed, templates and template sets can be executed safely in
Once constructed, templates and template sets can be executed safely in
parallel.
parallel.
...
@@ -28,7 +28,8 @@ data, defined in detail below.
...
@@ -28,7 +28,8 @@ data, defined in detail below.
*/
*/
// {{/* a comment */}}
// {{/* a comment */}}
// A comment; discarded. Comments do not nest.
// A comment; discarded. May contain newlines.
// Comments do not nest.
/*
/*
{{pipeline}}
{{pipeline}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment