ijse / freemarker.js

make freemarker available for node.js with FMPP.
http://freemarker.js.org/
MIT License
111 stars 41 forks source link

Fix problems with paths containing whitespaces #21

Closed mariusbuescher closed 6 years ago

mariusbuescher commented 7 years ago

There are problems when using paths that contain whitespaces.

  1. The fmpp executable can not be found.
  2. fmpp can not resolve the paths

The fixes for these problems are easy:

  1. Use a relative path for the executable
  2. Use relative paths for the input templates
  3. Set quotes around the sourceRoot in the generated fmpp configuration