XF 1.5 xen:include


Well-known member
Hello all,

I'm stilling learning when it comes to coding and I was wondering, what is happening when you have a xen:include like this...

<xen:include template="example_template">

...as opposed to...

<xen:include template="example_template" />

I understand the second one is just including that template, but I'm not sure what my first example is doing?

Thank you :)


XenForo moderator
Staff member
The first example is used if you need to map or set variables in the template.

If you search for </xen:include> in the templates you can see how it is used.