It’s not working because functions and templates are different things. Phoenix.Template does not create individual functions per template, so you cannot use function_exported? to check if a certain template is available. The documentation shows not only the function_exported? code, but also a function that’s being checked for. This seems to be in line with the push to more function components using heex.






















