#!/usr/bin/env perl use strict; use warnings; use Test::More; use Text::Handlebars; use Text::Xslate 'mark_raw'; my $tx = Text::Handlebars->new; is( $tx->render_string( '

{{title}}

{{{body}}}

', { title => 'My New Post', body => 'This is my first post!' }, ), '

My New Post

This is my first post!

', ); is( $tx->render_string( '

{{title}}

{{{body}}}

', { title => 'All About

Tags', body => 'This is a post about <p> tags' }, ), '

All About <p> Tags

This is a post about <p> tags

', ); is( $tx->render_string( '

{{title}}

{{{body}}}

', { title => mark_raw('All About <p> Tags'), body => 'This is a post about <p> tags' }, ), '

All About <p> Tags

This is a post about <p> tags

', ); done_testing;