|
|
|
|
|
by jolux
1545 days ago
|
|
There’s no JavaScript unless you write it into the template. If you want to use LiveView that needs JavaScript but plain old templates do not. As for bloat I don’t really agree but I can see how it might appear that way. Phoenix is actually not monolithic, it is sort of just a set of conventions and macros (batteries) that make using Plug and Ecto and some other libraries together more cohesive and more like programming in Rails. If you don’t like that approach you can also just use Plug and Plug.Router directly, which is more of a microframework feel like Flask or Sinatra. |
|
> There’s no JavaScript unless you write it into the template.
I want this. How do I achieve this? "mix phx.new" is not it, as there are JavaScript files in "assets/", for example.