Drab v0.7.7 Release Notes

  • ๐Ÿš€ Potentially breaking release!

    ๐Ÿš€ As a preparation to 0.8.0, this release contains fundamental change in Drab.Live behaviour. It โœ‚ removes all the engine limitations, and makes a big change on how it treats @conn assign.

    ๐Ÿš€ Please report any found issues with this release.

    API Changes

    The @conn case

    Because sometimes it is huge, @conn is treated in the special way - it is trimmed to contain only ๐Ÿ”ง essential fields. By default it is :private => :phoenix_endpoint, but you may configure it.

    config :drab, :live_conn_pass_through, %{
      assigns: %{
        users: true
      },
      private: %{
        phoenix_endpoint: true
      }
    }
    

    ๐Ÿ“š See Drab.Live documentation for more details on this case.

    :templates_path config must be under priv/

    If you are using :templates_path config, and your templates are not under the priv/ directory, ๐Ÿšš you'll have to move them. Solved #105.