I am not quite sure how to achieve passing the relative project root directory to a javascript file. Purpose of having this is to call an ajax function that should use relative paths to the root dir.
However, one ugly method would be to store the dir in the meta fields of the HTML header, but I really want to avoid this.
Any theoretical suggestion?
Are there any kind of Javascript helper in version 3.0?