Added in docs for template comments

This commit is contained in:
Alex Sexton
2011-10-09 20:29:03 -05:00
parent b832c85923
commit 7b18e51bf8
+15
View File
@@ -166,6 +166,21 @@ example:
// <li><a href="/people/2">Yehuda</a></li>
// </ul>
### Comments
You can add comments to your templates with the following syntax:
{{! This is a comment }}
You can also use real html comments if you want them to end up in the output.
<div>
{{! This comment will not end up in the output }}
<!-- This comment will show up in the output -->
</div>
Precompiling Templates
----------------------