{"action":"created","issue":{"url":"https://api.github.com/repos/assemble/assemble/issues/829","repository_url":"https://api.github.com/repos/assemble/assemble","labels_url":"https://api.github.com/repos/assemble/assemble/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/assemble/assemble/issues/829/comments","events_url":"https://api.github.com/repos/assemble/assemble/issues/829/events","html_url":"https://github.com/assemble/assemble/issues/829","id":135006095,"number":829,"title":"Access to old built-In variables in 0.9","user":{"login":"jpgcode","id":825638,"avatar_url":"https://avatars.githubusercontent.com/u/825638?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgcode","html_url":"https://github.com/jpgcode","followers_url":"https://api.github.com/users/jpgcode/followers","following_url":"https://api.github.com/users/jpgcode/following{/other_user}","gists_url":"https://api.github.com/users/jpgcode/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgcode/subscriptions","organizations_url":"https://api.github.com/users/jpgcode/orgs","repos_url":"https://api.github.com/users/jpgcode/repos","events_url":"https://api.github.com/users/jpgcode/events{/privacy}","received_events_url":"https://api.github.com/users/jpgcode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-19T23:57:30Z","updated_at":"2016-02-20T17:28:15Z","closed_at":null,"body":"In the grunt version of assemble, there were a built-in variables that you could use in your templates:\r\nhttp://assemble.io/docs/Built-in-Variables.html\r\n\r\nI'm trying to use specifically: \r\n`{{ pagename }}`\r\nand\r\n`{{ basename }}`\r\n\r\nPer my recent tests it seems this is no longer available as default in 0.9. \r\nI know I can create a helper using the new syntax as follows:\r\n`app.helper('pagename', function(){\r\n});`\r\n\r\nAnd get the list of pages from app.views.page, however I want to get the current page, and I can't find a way to do it. \r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/assemble/assemble/issues/comments/186656633","html_url":"https://github.com/assemble/assemble/issues/829#issuecomment-186656633","issue_url":"https://api.github.com/repos/assemble/assemble/issues/829","id":186656633,"user":{"login":"doowb","id":995160,"avatar_url":"https://avatars.githubusercontent.com/u/995160?v=3","gravatar_id":"","url":"https://api.github.com/users/doowb","html_url":"https://github.com/doowb","followers_url":"https://api.github.com/users/doowb/followers","following_url":"https://api.github.com/users/doowb/following{/other_user}","gists_url":"https://api.github.com/users/doowb/gists{/gist_id}","starred_url":"https://api.github.com/users/doowb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doowb/subscriptions","organizations_url":"https://api.github.com/users/doowb/orgs","repos_url":"https://api.github.com/users/doowb/repos","events_url":"https://api.github.com/users/doowb/events{/privacy}","received_events_url":"https://api.github.com/users/doowb/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T17:28:15Z","updated_at":"2016-02-20T17:28:15Z","body":"@jpgcode everything in your gulp task looks correct. Can you post the templates you're using or a repository that we can take a look at?\r\n\r\nBTW... the `view` object has some non-enumerable getters on them so that's why things like `view.path` should work. I tested this out with doing `view.filename` and it rendered just the filename part of the path (which I think is what you asked for in the original post)."}}