Rendering Views
Last updated
Last updated
Just like res.render
in Express, Angel's ResponseContext
exposes a Future
called render
. This invokes whichever function is assigned to your server's viewGenerator
.
There is a Mustache templating plug-in for Angel available:
There is also , one of the few actively-developed HTML templating engines for Dart.
Angel support for Jael is provided through .
Another is Jinja2, which was recently ported by to Dart by .
Angel support for Jinja2 can be found here:
Angel declares the following typedef:
A templating plug-in can assign one of these to app.viewGenerator
to set itself up:
Explore Angel's isomorphic .
Find out how to .