1#!perl -T
2
3use strict;
4use warnings;
5use Test::More;
6use Tenjin;
7
8my $t = Tenjin->new({ path => ['t/data/nested_layouts'] });
9ok($t, 'Got a proper Tenjin instance');
10
11# single-level layout
12is(
13	$t->render('inside_layout.html', { _content => 'fake' }),
14	'<outside><inside>fake</inside></outside>',
15	'Single level of layouts works'
16);
17
18# multiple-level layouts
19is(
20	$t->render('top.html'),
21	'<outside><inside><top>content</top></inside></outside>',
22	'Multiple levels of layouts work'
23);
24
25done_testing();
26