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

XF 1.5 xen:include

RichardKYA

Well-known member
#1
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">
**CODE HERE**
</xen:include>

...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 :)
 

Brogan

XenForo moderator
Staff member
#2
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.