ejs template function inside function-Collection of common programming errors

Is there a way for ejs template to call a function inside another function? For example I am trying to do like this:


        





    
        
         
        

        ]]>
        
    


But it says that graphs are undefined…

  1. Your code is saying that “graphs” (with an “s”) is undefined and not “graph”, correct? Where are you defining the graphs array? Otherwise, the code looks fine.

Originally posted 2013-11-09 22:47:12.