1 Reply Latest reply on Jul 5, 2015 10:00 PM by pcproff

    Failed to lookup view "index" in views directory "/opt/xdk-daemon/views"

    pcproff

      I am trying to render a view using ejs and whenever I try to render the view I get error regarding the "/opt/xdk-daemon/views" which is obviously where I am not used to storing web application files. What options do I have to put my application files somewhere that express.js can see them? I am using IBM XDK.

       

      code

      router.get('', function(req, res) {

          res.render('index', {

             title: 'Title',

             subTitle: 'sub title'

        });

      });

      code