Author Topic: How do I call a custom template inside another?  (Read 2534 times)

0 Members and 1 Guest are viewing this topic.

Offline eeyipes

  • Pre-Newbie
  • Posts: 7
    • View Profile
How do I call a custom template inside another?
« on: August 28, 2015, 06:04:29 PM »
For example, let's say I have a custom template, "bitofcode.html" , in my templates folder with a bit of code that I would like to include on other pages using a variable like {bitofcode} .

This way when "bitofcode" needs updating I can do it easily at bitofcode.html instead of fussing with the multiple templates I am displaying it on.

How to? Thanks!