Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Wires the khnum template engine into the Maat framework.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages