• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Commenting within templates?

steven s

Well-known member
#1
I like to comment the beginning and end of a template edit.

<!-- guest welcome -->
<!-- /guest welcome -->

I also generally use comments at the beginning of a template to know what edits need to be made before reverting.

What is the proper way to comment in XF?
 

borbole

Well-known member
#2
I like to comment the beginning and end of a template edit.

<!-- guest welcome -->
<!-- /guest welcome -->

I also generally use comments at the beginning of a template to know what edits need to be made before reverting.

What is the proper way to comment in XF?
I think the best way to comment in xenforo templates would be with:

Code:
<xen:comment>guest welcome</xen:comment>