What about $self->app->stash() ?
On May 21, 2014 10:44 AM, "Neil Watson" <[email protected]> wrote:
> I'm trying to stash some data to render to a text template, but I get
> the error:
> Can't locate object method "stash" via package "DeltaR::Command::query"
>
> What have I done wrong?
>
> package DeltaR::Command::query;
> use Mojo::Base qw( Mojolicious::Command );
>
> sub run
> {
> my ( $self, @args ) = @_;
> # ....
>
> $self->stash(
> rows => $rows,
> columns => [ 'Promiser', 'Promisee', 'Promise handle', 'Promise
> outcome',
> 'Timestamp', 'Hostname','IP Address','Policy Server' ]
> );
> $self->render( template => "rtable.txt" );
> }
> 1;
>
> --
> Neil Watson
> Linux/UNIX Consultant
> http://watson-wilson.ca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.