- Add support for wrapping a Phlex view in a layout. Pass
layout: true
to use Sinatra's default layout or specify the view by passing a symbol. Defaults to ERB and other Sinatra templating languages can be specified via thelayout_engine:
keyword.
- Add support for streaming a view. Pass
stream: true
to the#phlex
helper so Phlex will use Sinatra's streaming capability.
- Allow passing a
content_type:
kwarg to the#phlex
helper so it behaves like Sinatra's other template helpers (defaults to:html
– or:svg
for aPhlex::SVG
instance). - Raise an informative error message if the
#phlex
helper receives something other than a Phlex instance.
- Initial release