package Mojolicious::Plugin::AutoRoute::Util;

use strict;
use warnings;
use base 'Exporter';

our @EXPORT_OK = ('template');

sub template {
  my $template = shift;
  
  return sub { shift->render($template, 'mojo.maybe' => 1) };
}

1;

=head1 Mojolicious::Plugin::AutoRoute::Util

template function.

