jaguar_mustache 0.5.0 jaguar_mustache: ^0.5.0 copied to clipboard
Jaguar interceptors to render mustache templates
jaguar_mustache #
Jaguar interceptors to render mustache templates
Example #
@Api(path: '/api')
class ExampleApi extends _$JaguarExampleApi {
@Get(path: '/file')
@WrapMustacheRender('example/test.template.html')
Future<Map<String, String>> mustacheFile() async {
return {'login': 'Kleak'};
}
@Get(path: '/str')
@WrapMustacheStrRender(kTemplate)
Future<Map<String, String>> mustacheStr() async {
return {'login': 'Kleak'};
}
}