Re: [nesta] Current page or article full URL
- Graham Ashton
- 2012-11-15 @ 15:39
On 14 Nov 2012, at 19:09, Jason Clark <firstname.lastname@example.org> wrote:
> I'm setting up a Twitter button for my blog and I need to create a URL
of the current article. I was thinking `url(@page.permalink)` would do it,
but its not exactly what I want.
Have a look at Sinatra's `uri` method (which they've helpfully [not])
aliased as `to` and `url`, in case it was too clear... ;-)
Check the second argument; I reckon setting that to true might do it.
If not, I think there'll be enough code inside that method for you to be
able to work something out.
Founder, The Agile Planner
http://theagileplanner.com | @agileplanner | @grahamashton