{"action":"created","issue":{"url":"https://api.github.com/repos/linkedin/dustjs/issues/707","labels_url":"https://api.github.com/repos/linkedin/dustjs/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/dustjs/issues/707/comments","events_url":"https://api.github.com/repos/linkedin/dustjs/issues/707/events","html_url":"https://github.com/linkedin/dustjs/issues/707","id":110875706,"number":707,"title":"How to render dust template located in different folders?","user":{"login":"mickyloranger","id":8860915,"avatar_url":"https://avatars.githubusercontent.com/u/8860915?v=3","gravatar_id":"","url":"https://api.github.com/users/mickyloranger","html_url":"https://github.com/mickyloranger","followers_url":"https://api.github.com/users/mickyloranger/followers","following_url":"https://api.github.com/users/mickyloranger/following{/other_user}","gists_url":"https://api.github.com/users/mickyloranger/gists{/gist_id}","starred_url":"https://api.github.com/users/mickyloranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickyloranger/subscriptions","organizations_url":"https://api.github.com/users/mickyloranger/orgs","repos_url":"https://api.github.com/users/mickyloranger/repos","events_url":"https://api.github.com/users/mickyloranger/events{/privacy}","received_events_url":"https://api.github.com/users/mickyloranger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-11T18:33:13Z","updated_at":"2015-10-11T19:37:49Z","closed_at":null,"body":"Hi,\r\n\r\nI have the following set up:\r\n\r\napp.engine('dust', engines.dust);\r\napp.set('view engine', 'dust');\r\napp.set('views', path.join(__dirname,  path.join('public', 'templates')));\r\n\r\nNow in /public/templates/ i have many subfolders. For expl sub1, sub2 where my templates are located. How can i from  the folder /routes/sub1/ render the templates located in /public/templates/sub1.\r\n\r\nI have try this:\r\nres.render('sub1/index', {title: 'Sub1'});\r\nres.render('sub1.index', {title: 'Sub1'});\r\n\r\nbut this don't work\r\n\r\nRegards\r\nMicky"},"comment":{"url":"https://api.github.com/repos/linkedin/dustjs/issues/comments/147238573","html_url":"https://github.com/linkedin/dustjs/issues/707#issuecomment-147238573","issue_url":"https://api.github.com/repos/linkedin/dustjs/issues/707","id":147238573,"user":{"login":"sethkinast","id":1399532,"avatar_url":"https://avatars.githubusercontent.com/u/1399532?v=3","gravatar_id":"","url":"https://api.github.com/users/sethkinast","html_url":"https://github.com/sethkinast","followers_url":"https://api.github.com/users/sethkinast/followers","following_url":"https://api.github.com/users/sethkinast/following{/other_user}","gists_url":"https://api.github.com/users/sethkinast/gists{/gist_id}","starred_url":"https://api.github.com/users/sethkinast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethkinast/subscriptions","organizations_url":"https://api.github.com/users/sethkinast/orgs","repos_url":"https://api.github.com/users/sethkinast/repos","events_url":"https://api.github.com/users/sethkinast/events{/privacy}","received_events_url":"https://api.github.com/users/sethkinast/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T19:37:49Z","updated_at":"2015-10-11T19:37:49Z","body":"What is `engines`? Are you using consolidate? If not, which rendering engine?\n\nWhat express version?"}}