[dancer-users] route handler for a URL that matches a token

Richard Reina gatorreina at gmail.com
Fri Sep 18 00:13:45 BST 2015


2015-09-17 13:03 GMT-05:00 Kadir Beyazlı <kadirbeyazli at gmail.com>:

> Hi Richard,
>
> 17 Eyl 2015 20:29 tarihinde "Richard Reina" <gatorreina at gmail.com> yazdı:
>
> >>
> >> ;
> >> You dont need define variable here. Also you should use "=>" instead of
> "=" as follow.
> >>
> >> incoming_token => params->{token}
> >>
> >>
> >
> > Ok, but now how can I access the value of incoming_token? Is it now a
> scalar?
> >
> > How can I use it to do for example
> >
> > if (incoming_token eq 'blahblablah) { #then do something }
> >
> > To me if it doesn't have $ in front of it I don't know how to handle it.
>
> Will not you use incoming_token at template file? If so, you will use like
> this
>
> [ IF incoming_token = value ]
>
> [ END ]
>
> You do not need to use $ to apply compare at template file.
> >
>
Thanks for all the replies. Your suggestions were very helpful in getting
it to work.

Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150917/060cd059/attachment-0001.html>


More information about the dancer-users mailing list