summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-04 17:39:32 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-04 17:39:32 -0500
commit813512b43e411bb8657ecc3f9715943afff07b37 (patch)
tree897a70885293d4a7772e720ea88618f25113316e /t
parentcfbd9cd78c34ed3f9e123b8a7988d778bc389ef1 (diff)
downloadtext-handlebars-813512b43e411bb8657ecc3f9715943afff07b37.tar.gz
text-handlebars-813512b43e411bb8657ecc3f9715943afff07b37.zip
refactor this so that helpers are just normal functions
Diffstat (limited to 't')
-rw-r--r--t/helpers.t20
1 files changed, 10 insertions, 10 deletions
diff --git a/t/helpers.t b/t/helpers.t
index 3cc418d..50f3fe0 100644
--- a/t/helpers.t
+++ b/t/helpers.t
@@ -7,7 +7,7 @@ use Test::Handlebars;
render_ok(
{
- helpers => {
+ function => {
noop => sub {
my ($context, $options) = @_;
return $options->{fn}->($context);
@@ -36,7 +36,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
with => sub {
my ($context, $new_context, $options) = @_;
return $options->{fn}->($new_context);
@@ -71,7 +71,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
with => sub {
my ($context, $new_context, $options) = @_;
return $options->{fn}->($new_context);
@@ -138,7 +138,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
list => sub {
my ($context, $items, $options) = @_;
my $out = "<ul>";
@@ -178,7 +178,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
if => sub {
my ($context, $conditional, $options) = @_;
if ($conditional) {
@@ -204,7 +204,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
if => sub {
my ($context, $conditional, $options) = @_;
if ($conditional) {
@@ -230,7 +230,7 @@ RENDERED
{ local $TODO = "unimplemented"; local $SIG{__WARN__} = sub { };
render_ok(
{
- helpers => {
+ function => {
if => sub {
my ($context, $conditional, $options) = @_;
if ($conditional) {
@@ -260,7 +260,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
if => sub {
my ($context, $conditional, $options) = @_;
if ($conditional) {
@@ -290,7 +290,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
list => sub {
my ($context, $items, $options) = @_;
@@ -333,7 +333,7 @@ RENDERED
render_ok(
{
- helpers => {
+ function => {
list => sub {
my ($context, $items, $options) = @_;