1. 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

Discussion in 'XenForo Questions and Support' started by RichardKYA, Aug 30, 2015.

  1. RichardKYA

    RichardKYA 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">
    **CODE HERE**

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

    Brogan 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.
    RichardKYA likes this.

Share This Page