### ----------------------------------------------------
### -- Template::Mustache
### -- Licenses: Artistic-2.0
### -- Authors: Tim Smith, Richard Hainsworth
### -- File: t/05-promise.t
### ----------------------------------------------------
use Test;
use Template::Mustache;

plan 1;

my $m = Template::Mustache.new: :from<views>;

is $m.render('Hello, {{promise}}!', { promise => start {sleep 1; "world"} }),
    "Hello, world!",
    'Interpolate promise object';

# vim:set ft=raku:


