{"action":"created","issue":{"url":"https://api.github.com/repos/tj/consolidate.js/issues/217","labels_url":"https://api.github.com/repos/tj/consolidate.js/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/tj/consolidate.js/issues/217/comments","events_url":"https://api.github.com/repos/tj/consolidate.js/issues/217/events","html_url":"https://github.com/tj/consolidate.js/issues/217","id":123984525,"number":217,"title":"ejs and jade use together by consolidate","user":{"login":"GabrielchenCN","id":11185797,"avatar_url":"https://avatars.githubusercontent.com/u/11185797?v=3","gravatar_id":"","url":"https://api.github.com/users/GabrielchenCN","html_url":"https://github.com/GabrielchenCN","followers_url":"https://api.github.com/users/GabrielchenCN/followers","following_url":"https://api.github.com/users/GabrielchenCN/following{/other_user}","gists_url":"https://api.github.com/users/GabrielchenCN/gists{/gist_id}","starred_url":"https://api.github.com/users/GabrielchenCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GabrielchenCN/subscriptions","organizations_url":"https://api.github.com/users/GabrielchenCN/orgs","repos_url":"https://api.github.com/users/GabrielchenCN/repos","events_url":"https://api.github.com/users/GabrielchenCN/events{/privacy}","received_events_url":"https://api.github.com/users/GabrielchenCN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-27T16:03:09Z","updated_at":"2016-01-21T13:51:38Z","closed_at":"2016-01-21T13:51:38Z","body":"\ti am a beginner for nodejs ，i try to combine ejs and jade together used by consolidate.  but i confused that because\r\nit’s working on one project before and not working on other project now.\r\n\tcodes like：\r\n\tvar engines = require('consolidate'); \r\n\t app.engine('jade', engines.jade); \r\n\t app.engine('html', engines.ejs);\r\n\t app.set('view engine', 'jade'); \r\n\t app.set('view engine', 'html'); \r\n\t app.disable('x-powered-by'); \r\n\t app.set('port', config.port); \r\n\t app.set('views', path.join(__dirname, 'views'));\r\n     // i used the frame named “drywall”\r\n    but if codes like this it work,but not my desired effect,because not work together.\r\n\t\r\n       var engines = require('consolidate'); \r\n\t app.engine('jade', engines.jade); \r\n\t// app.engine('html', engines.ejs);\r\n\t app.set('view engine', 'jade'); \r\n\t //app.set('view engine', 'html'); \r\n\t app.disable('x-powered-by'); \r\n\t app.set('port', config.port); \r\n\t app.set('views', path.join(__dirname, 'views'));\r\n my version :\r\n1. \"express\": \"^4.12.x\",\r\n2. ejs”version\": \"2.3.3\",\r\n3.jade  \"version\": \"1.9.2\",\r\n4.”consolidate\":\"version\": \"0.13.1\",\r\n  can you help me ? \r\n  thanks "},"comment":{"url":"https://api.github.com/repos/tj/consolidate.js/issues/comments/173575203","html_url":"https://github.com/tj/consolidate.js/issues/217#issuecomment-173575203","issue_url":"https://api.github.com/repos/tj/consolidate.js/issues/217","id":173575203,"user":{"login":"BridgeAR","id":8822573,"avatar_url":"https://avatars.githubusercontent.com/u/8822573?v=3","gravatar_id":"","url":"https://api.github.com/users/BridgeAR","html_url":"https://github.com/BridgeAR","followers_url":"https://api.github.com/users/BridgeAR/followers","following_url":"https://api.github.com/users/BridgeAR/following{/other_user}","gists_url":"https://api.github.com/users/BridgeAR/gists{/gist_id}","starred_url":"https://api.github.com/users/BridgeAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BridgeAR/subscriptions","organizations_url":"https://api.github.com/users/BridgeAR/orgs","repos_url":"https://api.github.com/users/BridgeAR/repos","events_url":"https://api.github.com/users/BridgeAR/events{/privacy}","received_events_url":"https://api.github.com/users/BridgeAR/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T13:51:38Z","updated_at":"2016-01-21T13:51:38Z","body":"You can only set the view engine once. This is how express works.\r\n\r\nSo this should work as intended:\r\n```js\r\nvar engines = require('consolidate');\r\n\r\napp.engine('jade', engines.jade);\r\napp.engine('html', engines.ejs);\r\n\r\napp.set('view engine', 'jade');\r\n```"}}