Skip to content

Releases

3.1.0

Choose a tag to compare

@mydoxie mydoxie released this 08 Nov 11:45
f9a2132

Read before you update

  • $slots.main is now always there, as empty text. So {{ $slots.main ?? 'x' }} no longer prints x for an empty body.
  • An empty SafeString is now false in @if.

New

  • Tags: @isset, @empty, @auth, @guest, @env, @production, @once, @verbatim, @class, @checked, @selected and @disabled.
  • ViewEngine takes environment. By default it is APP_ENV.
  • Components get $attributes (with merge()) and $slot.

Fixes

  • {{ errors.email }} no longer throws when there is no session.
  • An app global named errors shows when there are no validation errors.
  • A changed object now shows in later renders. The toJson() cache lasts one render.

Needs dox_core 3.1.0.

Docs: Views

Full list: the CHANGELOG.

3.0.0

Choose a tag to compare

@necessarylion necessarylion released this 01 Nov 04:18
9ac9a78

The first stable release of dox_view.

A template engine for Dox, like Edge.js: .dox.html files with layouts, components, slots, @if, @each and escaped output.

Docs: https://dartondox.dev/latest/the-basic/views/