I should have tested v0.5.0 against our codebase more thoroughly before publishing. There were 2 issues:
Templates starting with . could no longer be used
During mix uniform.eject, you'd receive a warning for any template that didn't use app:
warning: variable "app" is unused (if the variable is not meant to be used, prefix it with an underscore)
lib/my_base_app/uniform/templates/path/to/template.eex:1: MyBaseApp.Uniform.Blueprint."path/to/template.eex"/1
To fix (1), we now pass match_dot: true to Path.wildcard when searching for templates to compile.
To fix (2), we mimic Phoenix.View by manually creating the function and doing _ = var!(app) to remove the warning, instead of using EEx.function_from_file.
I should have tested
v0.5.0
against our codebase more thoroughly before publishing. There were 2 issues:.
could no longer be usedmix uniform.eject
, you'd receive a warning for any template that didn't useapp
:To fix (1), we now pass
match_dot: true
toPath.wildcard
when searching for templates to compile.To fix (2), we mimic Phoenix.View by manually creating the function and doing
_ = var!(app)
to remove the warning, instead of usingEEx.function_from_file
.