Skip to content

Commit

Permalink
Modified docs
Browse files Browse the repository at this point in the history
  • Loading branch information
codespede committed May 12, 2022
1 parent 0f49247 commit e3466e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import { Application as Pwoli } from 'pwoli'; //if using ES6 modules or "type":
const pkg = require('pwoli'); //if using CommonJS
const Pwoli = pkg.Application;
// Pwoli is loaded!
//Now set the viewPath for finding the views:

// Now set the viewPath for finding the views:
// Please note: You don't need to set this if your application is just a REST API service
Pwoli.setViewPath(path.join(\_\_dirname, 'views')); // The base path in which your view files are stored. Only applicable for SSR apps.

//You're ready to go!
Expand Down

0 comments on commit e3466e1

Please sign in to comment.