Closed zolrath closed 1 year ago
I think you're supposed to do :Econtroller blog_web/post
Ah yeah that does work! I suppose that makes sense with the dirname
and basename
used in the template and the fact Projectionist really wasn't made for Elixir.
Makes me wish it had a pluggable system that we could use to inject the correct name in when in an Elixir project but that's definitely out of scope here!
One thing I'm noticing as far as Projectionist features are concerned is that running commands to create files such as
:Econtroller post
creates the file in/lib/controllers/post_controller.ex
instead of the intended/lib/blog_web/controllers/post_controller.ex
.The controller itself also lacks the project name and results in:
When switching between files with
:A
the plugin has the proper context to know what folder sits in the glob for/lib/**/controllers/post_controller.ex
, but the creation commands don't have any context.I'm unsure if we're able to provide that context to Projectionist.