So I am having some trouble trying to import functions and run them inside my cheetah templates.
So I have one file that lives at /docroot/tmpl/base.html and then another file that is /docroot/tmpl/comments.html
inside of comments I have something that looks like this
#def generateComments($commentObj):
code for generating comments
#end def
then inside of base.html I want to have a syntax like this
#import docroot.tmpl.comments as comments
<div class="commentlist">
$comments.generateComments($commentObj)
</div>
However when I run that output I just get the contents of comments.html printed out including the #def generateComments in raw txt.'
What am I missing?