Repository navigation
Releases
Releases · dartondox/dox-view
3.1.0
Read before you update
$slots.mainis now always there, as empty text. So{{ $slots.main ?? 'x' }}no longer printsxfor an empty body.- An empty
SafeStringis now false in@if.
New
- Tags:
@isset,@empty,@auth,@guest,@env,@production,@once,@verbatim,@class,@checked,@selectedand@disabled. ViewEnginetakesenvironment. By default it isAPP_ENV.- Components get
$attributes(withmerge()) and$slot.
Fixes
{{ errors.email }}no longer throws when there is no session.- An app global named
errorsshows 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
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.