### ----------------------------------------------------
### -- Cro::WebApp
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Worthington <jnthn@jnthn.net>
### -- File: t/template-parse-from-source.rakutest
### ----------------------------------------------------
use Test;
use Cro::WebApp::Template::Repository;

#| template-inline() is not amenable to direct testing since
#| Can only use 'content' inside of a request handler
my Cro::WebApp::Template::Compiled $parsed;
lives-ok { $parsed = parse-template('<.foo>, <.bar>') },
        'Can parse a template from a string';
is $parsed.render({ foo => 'hello', bar => 'world', }),
        'hello, world',
        'Can render template parsed from source';

done-testing;


