to_dict# Template.to_dict() → dict# Return a JSON-serializable dictionary for the full template tree.