Http route path helpers available?

12 views
Skip to first unread message

Alex Soto

unread,
Sep 9, 2015, 1:47:58 AM9/9/15
to Lita

Hi There,

I want to generate some htmls links and some full urls for some of the http routes in my handler.

I’m wondering if there is anything similar to the rails url generators?

for example:

http.get '/foo', :foo

Then in template use:

foo_path() or foo_url()

I’ve been digging in the source, but I’m not finding anything


Thanks,


Alex

Jimmy Cuadra

unread,
Sep 9, 2015, 3:12:08 AM9/9/15
to Alex Soto, Lita
Hi Alex,

There is not anything like that in Lita itself. After years of Rails I'm still not sure I think named route helpers are a good idea, so they are unlikely to be added to Lita. If it's a feature that would really benefit your plugin, it might be a good candidate for a Lita extension.

Jimmy

--
You received this message because you are subscribed to the Google Groups "Lita" group.
To unsubscribe from this group and stop receiving emails from it, send an email to litaio+un...@googlegroups.com.
To post to this group, send email to lit...@googlegroups.com.
Visit this group at http://groups.google.com/group/litaio.
To view this discussion on the web visit https://groups.google.com/d/msgid/litaio/d28354d3-e725-4682-9503-d91d12831e3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages