View 2.0

The release @adonisjs/[email protected] includes [email protected]. Edge has been rewritten from scratch and addresses all of the long pending issues.

Upgrade using the following command:

npm
npm i @adonisjs/view
yarn
yarn add @adonisjs/view

Re-write highlights

Check complete release notes

  • The error tracking is super solid. Compile time and runtime error will point back to the actual source code and not some compiled gibberish.
  • Almost every Javascript expression is supported inside Mustache braces.
  • Expression inside mustache can be written in multiple lines.
  • The components and slots exposes some great ways to create powerful components. Just like vue, you can pass data to slots when using them inside a component.
  • The inspect helper allows inspecting objects while pretty printing them.

On this page

Table of contents