Thursday, 20 April 2017

How to convert jade code to ejs

I am new to node.js.some one please help me how to convert below jade code to ejs

extends layout block content
div(id="root" style="width: 280px; margin: 40px auto; padding: 10px;") script.
var lock = new Auth0Lock('#{env.AUTH0_CLIENT_ID}', '# {env.AUTH0_DOMAIN}', { auth: {
redirectUrl: '#{env.AUTH0_CALLBACK_URL}' , responseType: 'code' , params: { scope: 'openid name email picture' }
}});
lock.show();



via priyanka

No comments:

Post a Comment