Skip to content

Commit 87599da

Browse files
committed
Merge pull request handlebars-lang#127 from SlexAxton/master
Added in comment docs
2 parents 374a38e + 7b18e51 commit 87599da

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.markdown

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@ example:
166166
// <li><a href="/people/2">Yehuda</a></li>
167167
// </ul>
168168

169+
170+
### Comments
171+
172+
You can add comments to your templates with the following syntax:
173+
174+
{{! This is a comment }}
175+
176+
You can also use real html comments if you want them to end up in the output.
177+
178+
<div>
179+
{{! This comment will not end up in the output }}
180+
<!-- This comment will show up in the output -->
181+
</div>
182+
183+
169184
Precompiling Templates
170185
----------------------
171186

0 commit comments

Comments
 (0)