khnum_maat 0.1.0 copy "khnum_maat: ^0.1.0" to clipboard
khnum_maat: ^0.1.0 copied to clipboard

Wires the khnum template engine into the Maat framework.

Khnum for Maat #

Khnum icon

Wires khnum into Maat.

// bootstrap/app.dart
.withProviders([AppServiceProvider.new, ViewServiceProvider.new, ...])

// config/view.dart
final Map<String, dynamic> view = {
  'paths': 'resources/views',
  'cache': !envBool('APP_DEBUG'),
};

// a handler
Route.get('/', (Request request) => view('home', {'title': 'Home'}));

view(name, data) returns an HTML Response; renderView(name, data) returns the string; View.share(name, value) adds data to every template.

0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Wires the khnum template engine into the Maat framework.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

khnum, maat, path

More

Packages that depend on khnum_maat