1.0.0 • Published 10 years ago

fallbackswigloader v1.0.0

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

Fallback Swig Loader

A template loader for SWIG that uses a list of folders and falls down the chain of them until a file is found.

Usage:

var fallbackswigloader = require("../fallbackswigloader");
swig.setDefaults({ loader: fallbackswigloader([
	path.join(__dirname, "dir1"),
	path.join(__dirname, "dir2"),
	path.join(__dirname, "dir3")
])});

With path being the built-in path moudle.

That's it really.

I might write tests someday