Most probably you are getting that error because you might not have the appropriate symbols namely "template" and "content" in the library. Are these present in your Edge composition file?
var l = sym.createChildSymbol( "template", "content");// This statement creates a childSymbol "template" inside the parent symbol "content" and hence, the 2 symbols should be available in your composition.
Regards,
Sudeshna