Pass django model elemts to javascript file -
is possible pass model elements directly java script file? making custom plugin , plugin in plugins folder. have completed need pass list of model objects it. have few ideas on how hack elements in via template file id prefer if there function call directly within java script file load elements. insight appreciated. in case should use ajax , request models server. alternative serve javascript file django , populate template