{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/3249","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/3249/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/3249/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/3249/events","html_url":"https://github.com/jekyll/jekyll/issues/3249","id":53230579,"number":3249,"title":"A general solution to allow interpolation of items passed in to Liquid tags. (Proposal for 3.0)","user":{"login":"tamouse","id":363583,"avatar_url":"https://avatars.githubusercontent.com/u/363583?v=3","gravatar_id":"","url":"https://api.github.com/users/tamouse","html_url":"https://github.com/tamouse","followers_url":"https://api.github.com/users/tamouse/followers","following_url":"https://api.github.com/users/tamouse/following{/other_user}","gists_url":"https://api.github.com/users/tamouse/gists{/gist_id}","starred_url":"https://api.github.com/users/tamouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamouse/subscriptions","organizations_url":"https://api.github.com/users/tamouse/orgs","repos_url":"https://api.github.com/users/tamouse/repos","events_url":"https://api.github.com/users/tamouse/events{/privacy}","received_events_url":"https://api.github.com/users/tamouse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll/labels/Discussion","name":"Discussion","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-01T22:38:30Z","updated_at":"2015-01-02T21:56:20Z","closed_at":"2015-01-02T20:27:51Z","body":"*(Edit: I meant this to be a discussion for 3.0)*\r\n\r\nThis has come up with regard to `{% include %}` tags before, and there have been some solutions there, however, it's also a general problem with Liquid tags. I don't believe a solution is possible in the current architecture, and I'm pretty sure it's not possible given just the Liquid implementation, which means something maybe needed in addition.\r\n\r\nIn looking at the `flickr_photoset` plugin <https://github.com/j0k3r/jekyll-flickr-photoset/blob/master/_plugins/flickr_photoset.rb#L34-L37> the author is doing something somewhat tricky to render the variable in the current context. This actually appears to work, *however*, only within the current context. So this works:\r\n\r\n```\r\n---\r\nlayout: post\r\ntitle: \"My Gallery\"\r\ngallery: 72157646883230496\r\n---\r\n\r\n{% flickr_photoset page.gallery %}\r\n```\r\n\r\nHowever, if one tries to do something like so, in another page:\r\n\r\n```\r\n{% for post in site.posts %\r\n{% flickr_photoset post.gallery %}\r\n{% endfor %}\r\n```\r\n\r\nThen the context is lost when it comes time to render that page, and only one photoset is rendered in each iteration.\r\n\r\nIt would be wonderful to have a more general approach that would work in all contexts.\r\n\r\nI don't know if this is possible, at all, but I'd hope we can entertain some discussion.\r\n"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/68566228","html_url":"https://github.com/jekyll/jekyll/issues/3249#issuecomment-68566228","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/3249","id":68566228,"user":{"login":"acaid","id":9419969,"avatar_url":"https://avatars.githubusercontent.com/u/9419969?v=3","gravatar_id":"","url":"https://api.github.com/users/acaid","html_url":"https://github.com/acaid","followers_url":"https://api.github.com/users/acaid/followers","following_url":"https://api.github.com/users/acaid/following{/other_user}","gists_url":"https://api.github.com/users/acaid/gists{/gist_id}","starred_url":"https://api.github.com/users/acaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acaid/subscriptions","organizations_url":"https://api.github.com/users/acaid/orgs","repos_url":"https://api.github.com/users/acaid/repos","events_url":"https://api.github.com/users/acaid/events{/privacy}","received_events_url":"https://api.github.com/users/acaid/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T21:56:20Z","updated_at":"2015-01-02T21:56:20Z","body":"Sorry for the basic question. Still quite new to ruby. I'm not sure where you mean to use\r\n```liquid\r\ninclude Jekyll::LiquidExtensions\r\n```\r\nIn jekyll.rb it looks like it's loaded by default...\r\n```ruby\r\nrequire 'jekyll/liquid_extensions'\r\n```\r\nThanks :)"}}