diff options
author | Peter Wagenet <peter.wagenet@gmail.com> | 2011-10-24 17:43:29 -0700 |
---|---|---|
committer | Peter Wagenet <peter.wagenet@gmail.com> | 2011-10-24 17:43:29 -0700 |
commit | 87599daef1eca4b097c2b077a968195516f8c2db (patch) | |
tree | 316f09e3addfafe02309d2d770c24f856a8642e4 | |
parent | 374a38ed36e8dad693c466cf104067cfd6acd589 (diff) | |
parent | 7b18e51bf84d1787e05f48609b07a3612f0dd505 (diff) | |
download | handlebars.js-87599daef1eca4b097c2b077a968195516f8c2db.zip handlebars.js-87599daef1eca4b097c2b077a968195516f8c2db.tar.gz handlebars.js-87599daef1eca4b097c2b077a968195516f8c2db.tar.bz2 |
Merge pull request #127 from SlexAxton/master
Added in comment docs
-rw-r--r-- | README.markdown | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 8d54d79..703423d 100644 --- a/README.markdown +++ b/README.markdown @@ -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 ---------------------- |