Closed weistn closed 10 years ago
Or simply do a lookup of relative URLs in the stdlib dir first and then use nodejs resolve.
BTW: The Parser should not resolve path names. The Compiler class must do this.
Importing std libs is no done by prefixing 'gismo/' e.g.
import 'gismo/template'
Instead of writing
import "gismo/lib/stdlib" import "gismo/lib/template"
write
import
import
This will search in the path "gismo/lib" and it will work even if gismo is not installed. Currently "require('gismo/lib/stdlib')" will only work when gismo is globally installed or included in $NODE_PATH.