Back to Notenik Docs


Intro to Website Creation using Notenik

2. Add content to your website ↑

2.5. Add comments to your code

There is no special Markdown syntax for comments, but you can use normal HTML comments freely within the body of a note, without having them show up in the output.

You can also use HTML comments within your template files. Here’s a particularly useful set of lines you will often see.

<!-------------------------------------------------------------------- 
  This html was generated by Notenik 
  using the merge template named =$template-file-name$=
  and the data at =$parent-folder$=. 
 -------------------------------------------------------------------->

The two variables here — =$template-file-name$= and =$parent-folder$= — will be replaced with the names of the template file and the data file used to generate a resulting bit of HTML. Then, when you are looking at a final web page, you’ll see comments reminding you how that particular chunk of HTML was generated.


Next: 2.6. Review the merge template